... C builtin functions?

Joe Mueller joemu at nsc-pdc.UUCP
Tue Apr 22 03:48:45 AEST 1986


> > >C has standard built-in functions????
>   
> > Well, how about sizeof(foo)?
> > 
> > It looks like a function invocation, and is known and understood
> > by the compiler...
> 
> The thing is, sizeof() evaluates to a constant at run time, just like
> 'c'<<3  or  BUFSIZ  .  That makes it a pretty trivial function.  All it
> really does is give you a portable, automatic facility for referring to
> system dependencies.
> -- 

Sizeof is an operator, not a function. It's perfectly legal to say
"sizeof foo" (without the parens).



More information about the Comp.lang.c mailing list