src/lib/ppc405lib/strtox.c
/// See documentation for the file strtox.c
See documentation for the file strtox.c
See documentation for the file strtox . c
int
_strtoull(const char* str, char** endptr, int base, unsigned long long* value)
{
    int rc, negative, overflow;
    rc = strtox(str, endptr, base, value, &negative, &overflow);
    if (rc) {
        *value = 0;
    } else {
        if (overflow) {
            rc = STRTOX_OVERFLOW_STRTOULL;
            *value = ULLONG_MAX;
        } else {
            if (negative) {
                *value = ~*value + 1;
            }
        }
    }
    return rc;
}
int _strtoull ( const char * str , char * * endptr , int base , unsigned long long * value ) { int rc , negative , overflow ; rc = strtox ( str , endptr , base , value , & negative , & overflow ) ; if ( rc ) { * value = 0 ; } else { if ( overflow ) { rc = STRTOX_OVERFLOW_STRTOULL ; * value = ULLONG_MAX ; } else { if ( negative ) { * value = ~ * value + 1 ; } } } return rc ; }
See documentation for the file strtox.c
See documentation for the file strtox . c