title: Pinging from a C/C++ program
body: <p>I want to write a C or C++ program, that given an IP address, Pings it and then performs further action based on whether the Ping was successful or not.
  How to do this? </p>