Subject: Re: sizeof(char) == 1 may yeald false
From: Mike Nordell (email@example.com)
Date: Sat Jun 02 2001 - 19:49:47 CDT
On Sat, Jun 02, 2001 at 08:14:07PM -0400, Dom Lachowicz wrote:
> > You can also add * sizeof(char_type) to the normal UT_StringBuf
> > code too, just for completeness though sizeof(char) will == 1
> Only when char is not a two byte char.
> Do not assume char to be 1 byte ;),
No, DO assume sizeof(char) to be exactly equal to one. It's a requirement in
the ISO and ANSI standards.
This archive was generated by hypermail 2b25 : Sat Jun 02 2001 - 21:48:34 CDT