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
user enters 22.214.171.124
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.