which system command should I use to make some ICMP activity? I tried to use system("ping www.google.com");, but it looks like program does not read further code after that.
Or how to make it read after system("ping www.google.com");?
For example:
#include <stdio.h>
#include <stdlib.h>
int main() {
system("ping www.google.com");
printf("\ncheck");
}
outputs PING www.google.com (173.194.78.105) 56(84) bytes of data
(no check) and I need to stop the program myself afterwards