"unsigned char" portability issues

Robin Carey robin_carey5 at yahoo.co.uk
Wed Apr 9 07:50:33 PDT 2003

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,


Robin Carey.

Yahoo! Plus - For a better Internet experience

More information about the freebsd-questions mailing list