2 fgetfield - read the next word from a file
8 fs file stream open for reading
10 return string, null or error value
13 If characters cannot be read from the file, an error value is returned.
15 Otherwise starting at the current file position, any whitespace
16 characters are skipped. If the reading reaches end-of-file, the
17 null value is returned. If non-whitespace is encountered, formation
18 of a string begins, continuing until whitespace of '\0' or end-of-file
19 is reached. The returned value is this string (terminated as usual
20 by a null character). After the operation, the file position will
21 be immediately after the first whitespace character of '\0' or at
26 > f = fopen("/tmp/junk", "w")
27 > fputs(f, " Alpha Beta \n")
36 > fputstr(f, " Alpha ", "Beta")
46 none - XXX - is this correct?
49 none - XXX - is this correct?
52 fgetstr, fputstr, fgets, fputs, fopen, files, fprintf