fseek1 fseek int fseek(FILE *fp, long offset, int whence) #include #include #include #include #include #include #include "local.h" #definePOS_ERR(-(fpos_t)1) /* * Seek the given file to the given offset. * `Whence' must be one of the three SEEK_* macros. */ int fseeko(FILE *fp, off_t offset, int whence) { fpos_t (*seekfn)(void *, fpos_t, int); fpos_t target, curoff; size_t n; struct stat st; int havepos; /* .. 2016. 7. 9. 이전 1 다음