bool => int or char?

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Nov 3 10:46:07 MDT 2010


On Wed, Nov 03, 2010 at 09:42:54AM -0700, Jeremy Allison wrote:
> Ah, sizeof(bool) may be 1, but what does it get expanded
> to when passed as an argument to a function ? Remember,
> char -> int in C when passed as an arg.

This happens for varargs style functions. I wouldn't bet on
it for functions with prototypes.

Volker


More information about the samba-technical mailing list