This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Something about sizeof(char)
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Dhruv Matani <dhruvbird at gmx dot net>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 14 Jun 2004 17:34:49 +0200
- Subject: Re: Something about sizeof(char)
- References: <1087227180.1367.16.camel@localhost.localdomain>
Dhruv Matani wrote:
Hi,
Is there any way of knowing whether on a platform the sizeof(char)
being always one is actually one byte == 8-bits? Or 1 is defined as more
than 8-bits.
For this there is the predefined macro |__CHAR_BIT__|
Paolo.