标签:des style blog color os io strong ar for
POSIX.1 将 read函数的原型做了修改,经典的定义为
1 int read(int filedes, char *buf, unsigned nbytes);
修改为
1 ssize_t read(int filedes, void *buf, size_t nbytes);
主要从以下几个方面考虑
First, the second argument was changed from a char * to a void * to be consistent with ISO C: the type void * is used for generic pointers.
引自 <Advanced Programming in the UNIX® Environment: Second Edition>
中文名为<UNIX环境高级编程:第二版>
标签:des style blog color os io strong ar for
原文地址:http://www.cnblogs.com/listened/p/3948345.html