- 博客(5)
- 资源 (1)
- 收藏
- 关注
转载 Linux 函数--fstat/stat/lstat系统调用
【fstat/stat/lstat系统调用】 功能描述: 获取一些文件相关的信息。 用法: #include #include #include int stat(const char *path, struct stat *buf); int fstat(int filedes, struct stat *buf); int lstat(const char *
2009-08-12 16:34:00
418
转载 Linux 函数--fstat/stat/lstat系统调用
【fstat/stat/lstat系统调用】 功能描述: 获取一些文件相关的信息。 用法: #include #include #include int stat(const char *path, struct stat *buf); int fstat(int filedes, struct stat *buf); int lstat(const char *
2009-08-12 16:23:00
674
转载 Linux 函数--fwrite
功 能: 写内容到流中用 法:fwrite(buffer,size,count,fp);(1)buffer:是一个指针,对fwrite来说,是要输出数据的地址。(2)size:要写入的字节数;(3)count:要进行写入size字节的数据项的个数;(4)fp:目标文件指针。程序例:#include struct mystruct{int i;char ch;};int main(void){FIL
2009-08-11 15:57:00
4612
转载 Linux 函数--access函数
Linux系统调用--access函数详解2007-07-30 23:10 【access系统调用】 功能描述: 检查调用进程是否可以对指定的文件执行某种操作。 用法: #include #include int access(const char *pathname, int mode); 参数: pathname: 需要测试的文件路径名。 mode: 需要测试的操作模
2009-08-11 15:51:00
831
原创 Linux 函数--fseek
fseek(移动文件流的读写位置) 相关函数 rewind,ftell,fgetpos,fsetpos,lseek 表头文件 #include 定义函数 int fseek(FILE * stream,long offset,int whence); 函数说明 fseek()用来移动文件流的读写位置。参数stream为已打开的文件指针,参数offset为根据参数whence来移动读写位置
2009-08-11 15:50:00
1336
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人