I am modifying code, that is using fopen / fread / getc as it's input
mechanisms for files. I am pretty sure I have gotten fread or getc to
act in a non-blocking way, but I simply cannot seem to remember how.
Really, I want to read if there is data available, and continue if not.
data = getc(file);
// do something with data
// no more data to read... continue
Unfortunately, I am blocking. What is the magic I need, so I can know
if data is available, or to read, with ...