📄 fseek.c
字号:
#include <stdio.h>#include <unistd.h>int fseek(FILE *f, long offset, int whence){ fflush(f); long off = lseek(f->fd, offset, whence); if (off < 0) return -1; f->ipos = 0; f->ilim = 0; f->ioffset = off; f->opos = 0; return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -