openharmony_kernel_liteos_m/kal/posix/musl_src/stdio/rewind.c

10 lines
143 B
C

#include "stdio_impl.h"
void rewind(FILE *f)
{
FLOCK(f);
__fseeko_unlocked(f, 0, SEEK_SET);
f->flags &= ~F_ERR;
FUNLOCK(f);
}