12 lines
197 B
C
12 lines
197 B
C
|
#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;
|
||
|
}
|
||
|
}
|