src/lib/ppc405lib/ssx_io.c
/// Assign an error code to a stream, returning a non-zero value for errors
/// considered fatal.
Assign an error code to a stream, returning a non-zero value for errors
considered fatal.
Assign an error code to a stream returning a non - zero value for errors considered fatal .
int
ssx_io_error_set(FILE *stream, int code)
{
    if (SSX_ERROR_CHECK_API) {
        SSX_ERROR_IF(stream == 0, EBADF);
    }
    stream->error = code;
    if ((code == EOF) ||
        (code == EAGAIN)) {
        return 0;
    } else {
        return -1;
    }
}
int ssx_io_error_set ( FILE * stream , int code ) { if ( SSX_ERROR_CHECK_API ) { SSX_ERROR_IF ( stream == 0 , EBADF ) ; } stream -> error = code ; if ( ( code == EOF ) || ( code == EAGAIN ) ) { return 0 ; } else { return -1 ; } }
Assign an error code to a stream, returning a non-zero value for errors
considered fatal.
Assign an error code to a stream returning a non - zero value for errors considered fatal .