This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
C standards question
- To: libc-hacker@cygnus.com
- Subject: C standards question
- From: Zack Weinberg <zack@rabi.columbia.edu>
- Date: Sun, 27 Sep 1998 01:11:27 -0400
Is this guaranteed to be safe?
f = fopen(file, "r");
...
fgetpos(f, &pos);
fclose(f);
...
f = fopen(file, "r");
fsetpos(f, &pos);
...
In other words, does an fpos_t cookie remain valid if the stream is
closed and reopened (on the same file), even on systems where a file
isn't an unstructured stream of bytes?
zw