libasn1print/asn1printproto.c
static size_t safe_fwrite(const void *ptr, size_t size) {
    size_t ret;

    switch(print_method_) {
    case PRINT_STDOUT:
        ret = fwrite(ptr, 1, size, stdout);
        assert(ret == size);
        break;
    case GLOBAL_BUFFER:
        abuf_add_bytes(&all_output_, ptr, size);
        ret = size;
        break;
    }

    return ret;
}
/* Pedantically check fwrite's return value. */
Pedantically check fwrite's return value.
Pedantically check fwrite ' s return value .
static size_t safe_fwrite(const void *ptr, size_t size) {
    size_t ret;
    switch(print_method_) {
    case PRINT_STDOUT:
        ret = fwrite(ptr, 1, size, stdout);
        assert(ret == size);
        break;
    case GLOBAL_BUFFER:
        abuf_add_bytes(&all_output_, ptr, size);
        ret = size;
        break;
    }
    return ret;
}
static size_t safe_fwrite ( const void * ptr , size_t size ) { size_t ret ; switch ( print_method_ ) { case PRINT_STDOUT : ret = fwrite ( ptr , 1 , size , stdout ) ; assert ( ret == size ) ; break ; case GLOBAL_BUFFER : abuf_add_bytes ( & all_output_ , ptr , size ) ; ret = size ; break ; } return ret ; }
Pedantically check fwrite's return value.
Pedantically check fwrite ' s return value .