X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Frewind.c;h=53ab51da9509b64a2fcb1567fb05a8b45de5eb45;hb=3fc6b339325dcf3f49c90a0fa76a45e438aff79c;hp=0a19155b5820428acd62c40996d8aa8b8ceaf35c;hpb=9a77499d5947c498be4f3981b87eff510602d0f9;p=pdclib diff --git a/functions/stdio/rewind.c b/functions/stdio/rewind.c index 0a19155..53ab51d 100644 --- a/functions/stdio/rewind.c +++ b/functions/stdio/rewind.c @@ -9,14 +9,15 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> -void rewind_unlocked( struct _PDCLIB_file_t * stream ) +void rewind_unlocked( FILE * stream ) { stream->status &= ~ _PDCLIB_ERRORFLAG; fseek_unlocked( stream, 0L, SEEK_SET ); } -void rewind( struct _PDCLIB_file_t * stream ) +void rewind( FILE * stream ) { flockfile(stream); rewind_unlocked(stream);