aboutsummaryrefslogtreecommitdiff
path: root/sys/libc/rewind.c
blob: 0185916c9154a1d2e0322805d2ce0eba4e234259 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/

#define	import_spp
#define	import_libc
#define	import_stdio
#include <iraf.h>


/* REWIND -- Position the named stream to beginning of file, i.e., arrange
** for the next read or write to read or write the first byte of the file.
*/
long
rewind (
  FILE	*fp			/* operand file				*/
)
{
	return ((long) fseek (fp, 0L, 0));
}