今天看了網上的一個代碼,有一個BUFSIZ,就查了一下,直接把別人的解說拿過來了
stdio.h:#ifndef BUFSIZ
stdio.h:# define BUFSIZ _IO_BUFSIZ
libio.h:#define _IO_BUFSIZ _G_BUFSIZ
_G_config.h:#define _G_BUFSIZ 8192
測試程序:
#include <stdlib.h>
#include <stdio.h>
int main()
{
printf("BUFSIZ= %d \n",BUFSIZ);
}
運行結果:
說明BUFSIZ的值等於一個常量值,這個值是8192,一般是會用來做數組的長度。
聲明:
本文轉載之:https://blog.csdn.net/qustdjx/article/details/7710787
如有疑問可查看原文鏈接,侵權聯繫刪除。