Re: Very odd problem running squid 2.7 on Windows

From: Kinkie <gkinkie_at_gmail.com>
Date: Mon, 25 May 2009 16:27:03 +0200

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