openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/nss-pam-ldapd/0.9.8-r0/nss-pam-ldapd-0.9.8/nslcd/common.c
unsigned int strtoui(const char* nptr, char** endptr, int base)
{
    unsigned long val;
    val = strtoul(nptr, endptr, base);
    if (val > UINT_MAX)
    {
        errno = ERANGE;
        return UINT_MAX;
    }
    /* If errno was set by strtoul, we'll pass it back as-is */
    return (unsigned int)val;
}
/* provide a strtoui() implementation, similar to strtoul() but returning
   an range-checked unsigned int instead */
provide a strtoui() implementation, similar to strtoul() but returning
an range-checked unsigned int instead
provide a strtoui () implementation similar to strtoul () but returning an range - checked unsigned int instead
unsigned int strtoui(const char* nptr, char** endptr, int base)
{
    unsigned long val;
    val = strtoul(nptr, endptr, base);
    if (val > UINT_MAX)
    {
        errno = ERANGE;
        return UINT_MAX;
    }
    return (unsigned int)val;
}
unsigned int strtoui ( const char * nptr , char * * endptr , int base ) { unsigned long val ; val = strtoul ( nptr , endptr , base ) ; if ( val > UINT_MAX ) { errno = ERANGE ; return UINT_MAX ; } return ( unsigned int ) val ; }
provide a strtoui() implementation, similar to strtoul() but returning
an range-checked unsigned int instead
provide a strtoui () implementation similar to strtoul () but returning an range - checked unsigned int instead
/* If errno was set by strtoul, we'll pass it back as-is */