On Mon, May 25, 2009 at 2:21 PM, Adrian Chadd <[email protected]> wrote:
> int
> isUnsignedNumeric(const char *str)
> {
>    for (; *str; str++) {
>        if (! isdigit(*str))
>            return -1;
>    }
>    return 1;
> }

Wouldn't returning 0 on false instead of -1 be easier?
Just a random thought..


-- 
    /kinkie

Reply via email to