从linux中的fwrite手册页来看,
DESCRIPTION函数fread()从流指向的流中读取数据的nmemb元素(每个大小都是字节长),并将它们存储在ptr给出的位置。在成功时返回值,fread()和fwrite()返回读或写的项目数。这个数字等于只有当大小为1时才传输的字节数。如果发生错误,或者到达文件的末尾,则返回值是短项计数(或零)。fread() does not distinguish between end-of-file and error, and callers must use feof(3)
:936:0,In function ‘fread’,/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:9: warning: call to ‘__fread_chk_warn’ declared with attributeCOLLECT_GCC=gcc
COLL
我一直收到这样的错误:inlined from ‘change_personality.constprop’ at megahal.c:3332:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declare