RESENT with patch ... Re: [RFC] Consistent numeric range for
"expr" on all architectures
David Schultz
das at FreeBSD.ORG
Thu Jun 30 17:29:05 UTC 2011
On Thu, Jun 30, 2011, Stefan Esser wrote:
> int
> +is_integer(const char *s)
> +{
> + if (*s == '-')
> + s++;
> + while (isdigit(*s))
> + s++;
> + return *s == '\0';
> +}
I only glanced at the patch for a few seconds, but your
is_integer() routine will accept a bare minus sign ("-") as an
integer.
More information about the freebsd-standards
mailing list