On Mon, May 25, 2009 at 2:21 PM, Adrian Chadd <adrian_at_squid-cache.org> 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
Received on Mon May 25 2009 - 14:27:12 MDT
This archive was generated by hypermail 2.2.0 : Tue May 26 2009 - 12:00:02 MDT