Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2002 17:29:17 +0100
From:      Cliff Sarginson <cliff@raggedclown.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: unsigned char portability
Message-ID:  <20020131162917.GA1789@raggedclown.net>
In-Reply-To: <20020131162116.GB1512@raggedclown.net>
References:  <F74DyNdauuNi4kysRWz00010abe@hotmail.com> <20020131162116.GB1512@raggedclown.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 31, 2002 at 05:21:16PM +0100, Cliff Sarginson wrote:
> On Thu, Jan 31, 2002 at 02:47:47PM +0000, June Carey wrote:
> > Hi,
> > 
> > I have a question I was hoping someone could answer.
> > Does the "unsigned char" C type have any machine architecture portability 
> > problems ?
> 
> If you explicitly "unsign" it no I believe not..as long as you don't
> play silly buggers with it inside a struct.
> 
> The signedness of a plain char is architecture/compiler dependent.
> Which is a pain in the a*se.
> 
Maybe I was answering the wrong question, are you talking about
transfering things down the wire, or about how a program behaves when
run on different architecures. My answer was to the latter question.

-- 
Regards
Cliff



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020131162917.GA1789>