1 2 3 4 5 6 7 8
#include <stdio.h> #include <stdbool.h> void rewind(FILE *f) { if (!fseek(f, 0, SEEK_SET)) f->_IO_error = false; }