source: trunk/minix/lib/stdio/rewind.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 299 bytes
Line 
1/*
2 * rewind.c - set the file position indicator of a stream to the start
3 */
4/* $Header: /cvsup/minix/src/lib/stdio/rewind.c,v 1.1.1.1 2005/04/21 14:56:36 beng Exp $ */
5
6#include <stdio.h>
7#include "loc_incl.h"
8
9void
10rewind(FILE *stream)
11{
12 (void) fseek(stream, 0L, SEEK_SET);
13 clearerr(stream);
14}
Note: See TracBrowser for help on using the repository browser.