user/lib/libc/src/file/fwrite.c
/**
 * Writes a character to the file.
 */
Writes a character to the file.
Writes a character to the file .
int fputc(int ch, FILE *stream) {
    if(stream->putc) {
        return stream->putc(stream, ch);
    } 
    else if(stream->write) {
        return stream->write(stream, &ch, 1);
    }
    errno = ENODEV;
    return -1;
}
int fputc ( int ch , FILE * stream ) { if ( stream -> putc ) { return stream -> putc ( stream , ch ) ; } else if ( stream -> write ) { return stream -> write ( stream , & ch , 1 ) ; } errno = ENODEV ; return -1 ; }
Writes a character to the file.
Writes a character to the file .
// XXX: should we keep this emulation?