i want to make a system call to ping to verify if an address exists before sending data to it.
so i can call ping using system("ping")
but i want the user to be able to specify an address to verify
eg:
Enter IP:
user enters 168.192.9.2
the program calls a ping with the ip specified
i cannot think of a way to do this
the code i have tried doesnt work.