From owner-freebsd-questions@FreeBSD.ORG Wed Apr 9 08:23:39 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5DB337B405 for ; Wed, 9 Apr 2003 08:23:39 -0700 (PDT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 27DB143FCB for ; Wed, 9 Apr 2003 08:23:38 -0700 (PDT) (envelope-from blueeskimo@gmx.net) Received: (qmail 12022 invoked by uid 65534); 9 Apr 2003 15:23:36 -0000 Received: from i216-58-29-174.gta.igs.net (EHLO [216.58.29.174]) (216.58.29.174) by mail.gmx.net (mp018-rz3) with SMTP; 09 Apr 2003 17:23:36 +0200 From: Adam To: freebsd-questions@freebsd.org In-Reply-To: <20030409145032.32369.qmail@web10907.mail.yahoo.com> References: <20030409145032.32369.qmail@web10907.mail.yahoo.com> Content-Type: text/plain Organization: Message-Id: <1049901814.64457.36.camel@jake> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 09 Apr 2003 11:23:34 -0400 Content-Transfer-Encoding: 7bit Subject: Re: "unsigned char" portability issues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 15:23:40 -0000 On Wed, 2003-04-09 at 10:50, Robin Carey wrote: > Dear FreeBSD-questions, > > I am writing some free software which uses the "unsigned char" C type. > > Some people have been raising the issue that the "unsigned char" type might be bigger than 8-bits and that there is therefore portability issues with it. > > Yet this C type is used in OpenSSL and in the SHA and MD5 routines shipped with FreeBSD, and the way in which it is used in these programs implicitly assumes it is exactly one byte in size. > > Can someone please give me some good advice on this issue ? > > Does the "unsigned char" type vary in size for different FreeBSD architectures ? This is something I've long pondered over myself .. If you find any definitive answers, drop me an email to let me know .. Thanks, -- Adam