📜  fseek 函数 in - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:37.295000             🧑  作者: Mango

代码示例1
FILE* fp;
// if file is 50 bytes long:
fseek(fp, /* from the end */ 23, SEEK_END); // <- at 50 - 23 so 27
fseek(fp, /* from the start */ 23, SEEK_SET); // 23
fseek(fp, /* from the the current (see ftell) */ 10, SEEK_CUR); // 33