【实用手记】IO函数原型
来源:互联网 发布:在哪买淘宝号 编辑:程序博客网 时间:2024/06/07 09:41
系统/文件IO .....返回及使用文件描述符
open #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int open(const char *pathname, int flags);close #include <unistd.h> int close(int fd);read #include <unistd.h> ssize_t read(int fd, void *buf, size_t count);write #include <unistd.h> ssize_t write(int fd, const void *buf, size_t count);lseek #include <sys/types.h> #include <unistd.h> off_t lseek(int fd, off_t offset, int whence);
标准IO .....返回及使用文件指针fopen #include <stdio.h> FILE *fopen(const char *path, const char *mode); FILE *fdopen(int fd, const char *mode);fclose #include <stdio.h> int fclose(FILE *fp);fread #include <stdio.h> size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);fwrite size_t fwrite(const void *ptr, size_t size, size_t nmemb,FILE *stream);fseek #include <stdio.h> int fseek(FILE *stream, long offset, int whence);ftell long ftell(FILE *stream);
目录IO .....返回及使用目录指针opendir #include <sys/types.h> #include <dirent.h> DIR *opendir(const char *name);closedir #include <sys/types.h> #include <dirent.h> int closedir(DIR *dirp);chdir #include <unistd.h> int chdir(const char *path);readdir #include <dirent.h> struct dirent *readdir(DIR *dirp);rewinddir #include <sys/types.h> #include <dirent.h> void rewinddir(DIR *dp);
阅读全文
0 0
- 【实用手记】IO函数原型
- iozone 实用手记
- linux上c,c++ 的io函数原型
- c标准文件io函数的原型和注意点
- eclipse最实用的手记
- 【实用手记】树莓派旋转屏幕
- 函数原型
- 函数原型
- 函数原型!!
- 函数原型
- android 手记之 IO流
- 函数的原型。。。原型链
- 构造函数、原型、原型链
- python学习手记-----函数
- 【实用手记】linux下命令行查看图片
- 实用函数
- 函数原型和函数
- atoi()函数原型与itoa()函数原型
- 面试三种设计模式
- HDU 3639 Hawk-and-Chicken(强连通分量+缩点)
- tomcat设置SSL访问
- 防窜货PDA扫描程序 APP 出入库扫描打印
- 300+篇阿里技术热点解析及珍贵技术资料免费下载(文章+PDF+视频,持续更新)
- 【实用手记】IO函数原型
- 数组、链表、Hash
- 在小I/O的系统中,CEPH是如何提高性能的?
- “逻辑和”与 “逻辑或”运算符
- 9、Bootstrap介绍及样式
- eclipse 常用快捷键
- Java中overload override区别总结
- 51Nod-1186-质数检测 V2 JAVA biginteger包
- 系统学习深度学习(七)--主流深度学习开源框架对比 2017-01-23 11:05 2292人阅读 评论(0) 收藏 举报 分类: 深度学习(30) 目录(?)[+] 转自:http://b