Subject: Re: `char -> unsigned char'
To: Don Lewis <>
From: Christos Zoulas <>
List: current-users
Date: 12/20/1998 08:44:48
On Dec 19, 11:24pm, (Don Lewis) wrote:
-- Subject: Re: `char -> unsigned char'

| On Dec 19,  6:02pm, Christos Zoulas wrote:
| } Subject: Re: `char -> unsigned char'
| } On NetBSD, not other systems. I am trying to get the code to be more portable
| } when it is compiled in other OS's. The choice is to either override the native
| } OS's ctype.h and use our own, or cast. Casting is more portable, but more
| } disruptive. If the consensus is that we should not be casting, then I'll
| } back out the changes and fix the header file.
| Instead of casting, it may be cleaner to declare the relevant variables
| unsigned.  <stdio.h> also uses unsigned chars.  Alas, <string.h> uses
| signed chars.  So much for consistency.

Right, but then the same variables are used for str*() functions as you
mentioned, so you have to cast there. It's a losing battle.