Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kcc-6/lib/stdio/rewind.c
There are 7 other files named rewind.c in the archive. Click here to see a list.
/*
 *	REWIND - rewind a stream back to the beginning
 *
 *	Copyright (C) 1986 by Ian Macky, SRI International
 */

#include <stdio.h>

void rewind(f)
FILE *f;
{
    fseek(f, 0L, SEEK_SET);	/* Go to beginning */
    clearerr(f);		/* and clear error indicator */
}