共 2 篇文章 |
|
在time.h头文件中,我们还可以看到一些函数,它们都是以time_t为参数类型或返回值类型的函数: double difftime(time_t time1, time_t time0); time_t mktime(struct tm * timeptr); time_t time(time_t * timer); char * asctime(const struct tm * timeptr); char * ctime(const time_t *timer);void * memcpy ( void * destination,... 阅62 转0 评0 公众公开 13-04-15 14:10 |
linux read函数linux read函数 2011-06-26 15:17.read函数可以读取文件。失败返回-1,errno被设为以下的某个值 EAGAIN:打开文件时设定了O_NONBLOCK标志,并且当前没有数据可读取EBADF:文件描述词无效,或者文件不可读EFAULT:参数buf指向的空间不可访问EINTR:数据读取前,操作被信号中断EINVAL:一个或者多个参数无效EIO:读写出错EISDIR:... 阅3883 转3 评0 公众公开 11-10-25 21:40 |