xref: /csrg-svn/lib/libc/stdio/fsetpos.c (revision 46111)
1*46111Sbostic /*-
2*46111Sbostic  * Copyright (c) 1990 The Regents of the University of California.
3*46111Sbostic  * All rights reserved.
4*46111Sbostic  *
5*46111Sbostic  * This code is derived from software contributed to Berkeley by
6*46111Sbostic  * Chris Torek.
7*46111Sbostic  *
8*46111Sbostic  * %sccs.include.redist.c%
9*46111Sbostic  */
10*46111Sbostic 
11*46111Sbostic #if defined(LIBC_SCCS) && !defined(lint)
12*46111Sbostic static char sccsid[] = "@(#)fsetpos.c	5.1 (Berkeley) 01/20/91";
13*46111Sbostic #endif /* LIBC_SCCS and not lint */
14*46111Sbostic 
15*46111Sbostic #include <stdio.h>
16*46111Sbostic 
17*46111Sbostic /*
18*46111Sbostic  * fsetpos: like fseek.
19*46111Sbostic  */
20*46111Sbostic fsetpos(iop, pos)
21*46111Sbostic 	FILE *iop;
22*46111Sbostic 	fpos_t *pos;
23*46111Sbostic {
24*46111Sbostic 	return (fseek(iop, (long)*pos, SEEK_SET));
25*46111Sbostic }
26