From owner-freebsd-questions Thu Jan 31 8:29:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id BEAB137B400 for ; Thu, 31 Jan 2002 08:29:19 -0800 (PST) Received: from [212.238.194.207] (helo=tanya.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16WK5O-0001Xc-00 for freebsd-questions@freebsd.org; Thu, 31 Jan 2002 16:29:18 +0000 Received: by tanya.raggedclown.net (tanya.raggedclown.intra, from userid 500) id A4D1544F6A; Thu, 31 Jan 2002 17:29:17 +0100 (CET) Date: Thu, 31 Jan 2002 17:29:17 +0100 From: Cliff Sarginson To: freebsd-questions@freebsd.org Subject: Re: unsigned char portability Message-ID: <20020131162917.GA1789@raggedclown.net> References: <20020131162116.GB1512@raggedclown.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020131162116.GB1512@raggedclown.net> User-Agent: Mutt/1.3.24i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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