setbuf(FILE *stream, char *buf);

void setbuf(FILE *stream, char *buf);

如果buf为NULL,则关闭流stream的的缓冲区;

否则setbuf函数等价于:

(void)setvbuf(stream, buf, _IOFBF, BUFSIZ)。

注意自定义缓冲区的尺寸必须为BUFSIZ个字节。

// int setvbuf(FILE *stream, char *buf, int mode, size_t size);

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(716) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
posted @ 2016-03-30 10:31  张同光  阅读(94)  评论(0编辑  收藏  举报