lseek函数
lseek函数用于移动文件的读写位置
表头文件#include <sys/types.h>
#include <unistd.h>
定义函数:off_t lseek(int fildes, off_t offset, int whence);
返回值:调用成功返回目前的读写位置,错误返回-1
close函数
close函数用于关闭文件
表头文件#include<stdio.h>
定义函数int close(int fd);
lseek函数
lseek函数用于移动文件的读写位置
表头文件#include <sys/types.h>
#include <unistd.h>
定义函数:off_t lseek(int fildes, off_t offset, int whence);
返回值:调用成功返回目前的读写位置,错误返回-1
close函数
close函数用于关闭文件
表头文件#include<stdio.h>
定义函数int close(int fd);