user/lib/libc/src/file/fwrite.c
/**
 * Calls the device's write implementation.
 */
Calls the device's write implementation.
Calls the device ' s write implementation .
size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream) {
    if(stream->write) {
        return stream->write(stream, ptr, (size * nitems));
    }
    errno = ENODEV;
    return -1;
}
size_t fwrite ( const void * restrict ptr , size_t size , size_t nitems , FILE * restrict stream ) { if ( stream -> write ) { return stream -> write ( stream , ptr , ( size * nitems ) ) ; } errno = ENODEV ; return -1 ; }
Calls the device's write implementation.
Calls the device ' s write implementation .