Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // apple xcode
- // paulogp
- /* ping */
- #include <stdio.h>
- #include <stdlib.h>
- int main (int argc, const char * argv[])
- {
- char the_ip[100] = "localhost";
- char the_command[100];
- printf ("ip: ");
- fgets (the_ip, sizeof(the_ip), stdin);
- sprintf (the_command, "ping -c 5 %s", the_ip);
- system (the_command);
- printf ("done\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement