sizeof(char)

Dag-Erling Smørgrav des at des.no
Fri Sep 30 08:25:57 EST 2011


Roumen Petrov <openssh at roumenpetrov.info> writes:
> Dag-Erling Smørgrav <des at des.no> writes:
> > To summarize: sizeof(char) == 1.  Always.  No exceptions.
> Sure.  I cannot run my time machine and to return 20 years ago .

Even if you could, sizeof(char) would still be 1.  The C standard
requires it.

> sizeof(char) == 1 does not mean that size if 8 bit . Did you read
> documentation for*AC_TYPE_INT8_T*  ?

The code in defines.h assumes 8 bits per byte.  That's not my doing, nor
does my patch change that fact, and it is completely orthogonal to the
issue I brought up, which was that sizeof(char) is always 1.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the openssh-unix-dev mailing list