1 2 3 4 5 6 7 8 9
#include "stdio_impl.h" void rewind(FILE *f) { FLOCK(f); __fseeko_unlocked(f, 0, SEEK_SET); f->flags &= ~F_ERR; FUNLOCK(f); }