Hunters

read函数

函数原型 :int read(int handle, void *buf, int nbyte);
表头文件:#include <unistd.h>
函数说明:read()会把参数handle所指的文件传送nbyte个字节到buf指针所指的内存中。若参数nbyte为0,则read()不会有作用并返回0。返回值为实际读取到的字节数,如果返回0,表示已到达文件尾或无可读取的数据。

posted on 2014-05-22 15:44  WalfHunters  阅读(327)  评论(0)    收藏  举报

导航