mirror of https://git.musl-libc.org/git/musl
1 changed files with 5 additions and 2 deletions
@ -1,6 +1,9 @@ |
|||
#include <stdio.h> |
|||
#include "stdio_impl.h" |
|||
|
|||
void rewind(FILE *f) |
|||
{ |
|||
fseek(f, 0, SEEK_SET); |
|||
FLOCK(f); |
|||
__fseeko_unlocked(f, 0, SEEK_SET); |
|||
f->flags &= ~F_ERR; |
|||
FUNLOCK(f); |
|||
} |
|||
|
|||
Loading…
Reference in new issue