[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Patch:] restore the native use of isdigit() instead of ap_isdigit() in httpd.
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: [Patch:] restore the native use of isdigit() instead of ap_isdigit() in httpd.
- From: joerg_(_at_)_britannica_(_dot_)_bec_(_dot_)_de
- Date: Fri, 31 Mar 2006 01:38:04 +0200
- Mail-followup-to: tech_(_at_)_openbsd_(_dot_)_org
On Thu, Mar 30, 2006 at 03:21:29PM -0700, Daniel Boulet wrote:
> Hmmm. The isdigit man page from the Single Unix Specification on the
> Open Groups' web site (www.unix.org) declares isdigit as follows:
> #include <ctype.h>
> int isdigit(int c);
> This documentation for the isdigit interface would appear to allow
> the parameter to be a char since chars can certainly be cast to ints
> without any loss of information.
Please read the *full* description, especially the following:
The c argument is an int, the value of which the application shall
ensure is a character representable as an unsigned char or equal to
the value of the macro EOF. If the argument has any other value, the
behavior is undefined.
Visit your host, monkey.org