码迷,mamicode.com
首页 > 其他好文 > 详细

相关函数

时间:2014-12-04 17:41:16      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:io   ar   os   sp   on   bs   ad   as   size   

一:

    1_3:  (1) DIR *opendir(const char *name);

         (2) DIR *fdopendir(int fd);

        On error, NULL is returned;

         (3) struct dirent *readdir( DIR *dp)

        On error, NULL is returned;

        (4) int closedir(DIR *dp);

         0 on success, -1 on error.

 

    1_4:  (1) ssize_t read(int fd, void *buf, size_t count);

                  On success, return the number of bytes read, maybe smaller than count, and the file position is advanced by the number.

                  On error, -1 returned.

            (2) ssize_t  write(int fd, void *buf, size_t count);

                 On success, return the number of bytes writetten, maybe bigger than count.

 

    1_5: (1) int getc(FILE *stream);   <stdio.h>

                On success, return the charactor read as an unsigned char cast to an int, or EOF end of file.

            (2) int putc(int c, FILE *stream)     <stdio.h>

:

 

 

 

 

 

     

相关函数

标签:io   ar   os   sp   on   bs   ad   as   size   

原文地址:http://www.cnblogs.com/gavinwu/p/4143229.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!