X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Frewind.c;h=f50bf025b475fa9cbcb6d614c965653e19607ad9;hb=HEAD;hp=53ab51da9509b64a2fcb1567fb05a8b45de5eb45;hpb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;p=pdclib diff --git a/functions/stdio/rewind.c b/functions/stdio/rewind.c index 53ab51d..f50bf02 100644 --- a/functions/stdio/rewind.c +++ b/functions/stdio/rewind.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* rewind( FILE * ) This file is part of the Public Domain C Library (PDCLib). @@ -9,25 +7,25 @@ #include #ifndef REGTEST -#include <_PDCLIB_io.h> +#include "_PDCLIB_io.h" -void rewind_unlocked( FILE * stream ) +void _PDCLIB_rewind_unlocked( FILE * stream ) { stream->status &= ~ _PDCLIB_ERRORFLAG; - fseek_unlocked( stream, 0L, SEEK_SET ); + _PDCLIB_fseek_unlocked( stream, 0L, SEEK_SET ); } void rewind( FILE * stream ) { - flockfile(stream); - rewind_unlocked(stream); - funlockfile(stream); + _PDCLIB_flockfile(stream); + _PDCLIB_rewind_unlocked(stream); + _PDCLIB_funlockfile(stream); } #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {