fseek.c
来自「在x86平台上运行不可信任代码的sandbox。」· C语言 代码 · 共 16 行
C
16 行
#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 + =
减小字号Ctrl + -
显示快捷键?