1*46100Sbostic /*- 2*46100Sbostic * Copyright (c) 1990 The Regents of the University of California. 332735Sbostic * All rights reserved. 432735Sbostic * 5*46100Sbostic * This code is derived from software contributed to Berkeley by 6*46100Sbostic * Chris Torek. 7*46100Sbostic * 842633Sbostic * %sccs.include.redist.c% 932735Sbostic */ 1032735Sbostic 1126659Sdonn #if defined(LIBC_SCCS) && !defined(lint) 12*46100Sbostic static char sccsid[] = "@(#)rewind.c 5.6 (Berkeley) 01/20/91"; 1332735Sbostic #endif /* LIBC_SCCS and not lint */ 1422144Smckusick 15*46100Sbostic #include <errno.h> 1632735Sbostic #include <stdio.h> 172030Swnj 18*46100Sbostic void 19*46100Sbostic rewind(fp) 20*46100Sbostic register FILE *fp; 212030Swnj { 22*46100Sbostic (void) fseek(fp, 0L, SEEK_SET); 23*46100Sbostic clearerr(fp); 24*46100Sbostic errno = 0; /* not required, but seems reasonable */ 252030Swnj } 26