kolibrios-fun/programs/develop/libraries/kolibri-libc/source/stdio/fputc.c

12 lines
197 B
C
Raw Normal View History

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