title: Reading characters from a stream up to whitespace using isspace in c
body: <p>I'm trying to write a function that takes a stream as an argument and reads from that stream and reads in the contents of the file up to the first whitespace as defined by the isspace function, and then uses the strtok function to parse the string.  I'm not sure how to start it though with which function to read a line and ignore the whitespace.  I know fgetc and getc only read one character at a time, and looking up the fscanf reference, will that work?  Or does that only find items in your stream according to the format specifiers %s?  Thanks!</p>