APUE:标准I/O库

设置缓冲:

#define _IOFBF 0		/* Fully buffered.  */
#define _IOLBF 1		/* Line buffered.  */
#define _IONBF 2		/* No buffering.  */

void setbuf (FILE *__restrict __stream, char *__restrict __buf);
int setvbuf (FILE *__restrict __stream, char *__restrict __buf, int __modes, size_t __n);

 

流和文件描述符:

FILE *fdopen (int __fd, const char *__modes);
int fileno (FILE *__stream);

 

内存流:

FILE *fmemopen (void *__s, size_t __len, const char *__modes);

 

posted @ 2017-05-21 17:32  mfmans  阅读(74)  评论(0编辑  收藏  举报