kolibrios/programs/develop/libraries/kolibri-libc/source/stdio/fgetc.c
turbocat da310946f0 kolibri-libc:
- Fixed fwrite.
- Added strcat to the export table. 
- Fixed two functions in ksys.h.
- Added binaries for autobuild

git-svn-id: svn://kolibrios.org@8705 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-04-30 22:00:07 +00:00

12 lines
165 B
C

#include <stdio.h>
int fgetc(FILE* stream)
{
int c=EOF;
if(fwrite(&c, sizeof(int), 1, stream)==1){
return c;
}else{
return EOF;
}
}