|
|
1.1 root 1: /*
2: * libc/stdio/rewind.c
3: * ANSI-compliant C standard i/o library.
4: * rewind()
5: * ANSI 4.9.9.5
6: * Rewind stream.
7: */
8:
9: #include <stdio.h>
10:
11: void
12: rewind(stream) register FILE *stream;
13: {
14: if (fseek(stream, 0L, SEEK_SET) == 0)
15: stream->_ff1 &= ~_FERR; /* ANSI 4.9.9.5 */
16: }
17:
18: /* end of libc/stdio/rewind.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.