[Date Prev][Date Next] [Chronological] [Thread] [Top]

Patch: ctype functions require 'unsigned char' args (ITS#1678)

Full_Name: Hallvard B. Furuseth
Version: 2.1.0alpha
OS: Linux
URL: http://folk.uio.no/hbf/OpenLDAP/ctype.txt
Submission from: (NULL) (

ctype.h functions require an argument in the range of 'unsigned char'.
(The integer type of the argument is irrelevant.)  Negative 'char'
values (when 'char' is signed) are not legal arguments, though some C
libraries partly support them since it is such a common error.