diff options
Diffstat (limited to 'src/stdio/rewind.c')
| -rw-r--r-- | src/stdio/rewind.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/stdio/rewind.c b/src/stdio/rewind.c new file mode 100644 index 00000000..73be1f57 --- /dev/null +++ b/src/stdio/rewind.c @@ -0,0 +1,16 @@ +#include <stdio.h> + +/** reset file position indicator **/ +void rewind(FILE *stream) +{ + fseek(stream, 0L, SEEK_SET); + clearerr(stream); +} + +/*** +sets the file position indicator of ARGUMENT(stream) to the +beginning of the file. The error indicator will be cleared. +***/ +/* +STDC(1) +*/ |
