Annotation of coherent/d/lib/libc/stdio/rewind.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Standard I/O Library.
                      3:  * Rewind file.
                      4:  * ANSI 4.9.9.5: void rewind(FILE *stream)
                      5:  * For historical reasons,
                      6:  * this defines rewind() returning int rather than void.
                      7:  */
                      8: 
                      9: #include <stdio.h>
                     10: 
                     11: int
                     12: rewind(fp)
                     13: register FILE  *fp;
                     14: {
                     15:        register int status;
                     16: 
                     17:        if ((status = fseek(fp, 0L, SEEK_SET)) == 0)
                     18:                fp->_ff &= ~_FERR;              /* ANSI 4.9.9.5 */
                     19:        return (status);
                     20: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.