On 10/18/2011 03:36 PM, Michael Sweet wrote:
> C doesn't define whether a "char" is signed or unsigned, so masking makes 
> sure that you don't pass in a negative number, and also keeps the value 
> within the range supported by the ctype functions (-1 to 255 in most cases - 
> -1 because that is the "EOF" character...)

I think the isdigit() and similar functions are required to work with 
the result of char->int conversion, so they should already be doing this 
sort of masking.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to