2 fgetstr - read the next null-terminated string from a file
8 fs file stream open for reading
10 return string, null or error value
13 If the stream is at end of file, the null value is returned.
15 If the stream cannot be read, an error value is returned.
17 Otherwise the function returns the string of characters from the
18 current file position to the first null character ('\0') (the file
19 position for further reading then being immediately after the '\0'),
20 or if no null character is encountered, the string of characters to
21 the end of file (the string as usual being terminated by '\0').
23 If the stream being read is from stdin (i.e. files(0)), the
24 characters entered are not displayed and reading ends when a '\0' is
25 entered (on many terminals this is by ctrl-@).
28 > f = fopen("/tmp/junk", "w")
29 > fputstr(f, " Alpha Beta ", "", "Gamma\n\tDelta")
42 none - XXX - is this correct?
45 none - XXX - is this correct?
48 fputstr, fgetword, fgets, fputs, fopen, files, fprintf