I am trying to read from a text file, and have each word become a new string. Is fgets a bad weapon of choice? It reads until a \n character, I guess I need to read until ' '?
Code:
LIST *CreateList(FILE *fp)
{
char buf[BUFSIZE];
fgets(buf, 256, fp);
puts (buf);
} /* End CreateList */