Help
Jan 11th, 2001, 05:56 PM
Hello,
I am pretty new to C programming and I would like to know how to do the following.
User types in Ip addy and Then pings ip. Here is my code now. I know all basic commands, but the system() isnt allowing two parameters. So thats where im lost.
#include <stdlib.h>
#include <stdio.h>
void main(void) {
float ip;
printf("Enter in ip addy: ");
scanf("%f",&ip);
system("ping %f", ip);
}
Any suggestions ?
Thanks
I am pretty new to C programming and I would like to know how to do the following.
User types in Ip addy and Then pings ip. Here is my code now. I know all basic commands, but the system() isnt allowing two parameters. So thats where im lost.
#include <stdlib.h>
#include <stdio.h>
void main(void) {
float ip;
printf("Enter in ip addy: ");
scanf("%f",&ip);
system("ping %f", ip);
}
Any suggestions ?
Thanks