mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-04-19 17:37:09 +02:00
@update > CMakeLists.txt | remove casiowin-* target (unused) | remove x86-generic target (unused) | update files location | remove old vhex sources files (deprecated, unused) > src/posix | remove this folder > src/libc | move its content to src/ | remove thread module > src/stdlib/reallocarray | check if the multiplication overflow failed | set appropriate errno value if multiplication failed
13 lines
243 B
C
13 lines
243 B
C
#include <stdio.h>
|
|
|
|
int feof(FILE *fp)
|
|
{
|
|
if(!fp->buf)
|
|
return fp->eof;
|
|
|
|
/* If there is read data to be accessed, the flag doesn't count */
|
|
if(fp->bufdir == __FILE_BUF_READ && fp->bufpos < fp->bufread)
|
|
return 0;
|
|
else
|
|
return fp->eof;
|
|
}
|