[Ffmpeg-devel] [PATCH] Chinese AVS video decoder

Uoti Urpala uoti.urpala
Sun Jul 2 05:43:14 CEST 2006


On Sat, 2006-07-01 at 22:45 -0400, The Wanderer wrote:
> >    exception is that sizeof(char) == 1 by definition.
> 
> I'm curious - where (i.e. in what standard) is this defined, and why?

The C standard (any version). sizeof(char) is the unit that other sizes
are measured in.

> The understanding I got when first learning C was that sizeof(char) ==
> "number of bytes necessary to store one printable character", which will

You misunderstood.

> be 1 if the compiling system is using basic ASCII or similar but may be
> 2 or more if the compiling system is using a fixed-size multibyte text
> encoding scheme.

wchar_t is the type used to represent extended characters as a single
number.





More information about the ffmpeg-devel mailing list