- manpage home 中写道:
- user commands () 用户命令
- system calls () 系统调用
- library functions () 库函数
- #include <>
- fread(3) 为库函数
FILE *fp = fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
fp指向的应该为FILE*文件类型的首地址
fwrite(3) 也为库函数
FILE *fp = fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
fp指向的应该为FILE*文件类型的首地址#include <>read(2) 为系统调用
read(int fd, void *buf, size_t count)
write(2) 为系统调用
write(int fd, const void *buf, size_t count)fd为文件描述符(file descriptor
fd),一个正型变量
maybe because we were close to end-of-file, or because we are reading from a pipe, or from a terminal
阅读(1127) | 评论(1) | 转发(0) |