title: c - check for when nothing is piped to stdin
body: <p>Basically I'm trying to check if anything is in stdin when the program is called, so if I've got another file called output that writes to stdout then
  <code>./output | ./program</code> should work and <code>./program</code> should exit with an error</p>