Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2003 15:50:32 +0100 (BST)
From:      =?iso-8859-1?q?Robin=20Carey?= <robin_carey5@yahoo.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   "unsigned char" portability issues
Message-ID:  <20030409145032.32369.qmail@web10907.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help

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 ?

Any help would be appreciated,

Thanks,

Robin Carey.




---------------------------------
Yahoo! Plus - For a better Internet experience



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