xref: /csrg-svn/lib/libc/stdio/fsetpos.c (revision 46272)
146111Sbostic /*-
246111Sbostic  * Copyright (c) 1990 The Regents of the University of California.
346111Sbostic  * All rights reserved.
446111Sbostic  *
546111Sbostic  * This code is derived from software contributed to Berkeley by
646111Sbostic  * Chris Torek.
746111Sbostic  *
846111Sbostic  * %sccs.include.redist.c%
946111Sbostic  */
1046111Sbostic 
1146111Sbostic #if defined(LIBC_SCCS) && !defined(lint)
12*46272Storek static char sccsid[] = "@(#)fsetpos.c	5.2 (Berkeley) 02/05/91";
1346111Sbostic #endif /* LIBC_SCCS and not lint */
1446111Sbostic 
1546111Sbostic #include <stdio.h>
1646111Sbostic 
1746111Sbostic /*
1846111Sbostic  * fsetpos: like fseek.
1946111Sbostic  */
2046111Sbostic fsetpos(iop, pos)
2146111Sbostic 	FILE *iop;
22*46272Storek 	const fpos_t *pos;
2346111Sbostic {
2446111Sbostic 	return (fseek(iop, (long)*pos, SEEK_SET));
2546111Sbostic }
26