File:  [MW Coherent from dump] / coherent / d / lib / libc / stdio / rewind.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:38 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * Standard I/O Library.
 * Rewind file.
 * ANSI 4.9.9.5: void rewind(FILE *stream)
 * For historical reasons,
 * this defines rewind() returning int rather than void.
 */

#include <stdio.h>

int
rewind(fp)
register FILE	*fp;
{
	register int status;

	if ((status = fseek(fp, 0L, SEEK_SET)) == 0)
		fp->_ff &= ~_FERR;		/* ANSI 4.9.9.5 */
	return (status);
}

unix.superglobalmegacorp.com

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