Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!tektronix!reed!nsc-pdc!joemu From: joemu@nsc-pdc.UUCP (Joe Mueller) Newsgroups: net.lang,net.lang.c Subject: Re: Re: Re: ... C builtin functions? Message-ID: <562@nsc-pdc.UUCP> Date: Mon, 21-Apr-86 12:48:45 EST Article-I.D.: nsc-pdc.562 Posted: Mon Apr 21 12:48:45 1986 Date-Received: Thu, 24-Apr-86 07:23:49 EST References: <41@cbmvax.cbmvax.cbm.UUCP> <824@ttrdc.UUCP> <202@chronon.UUCP> <359@uvacs.UUCP> Organization: NSC Portland Development Center, Portland Oregon Lines: 15 Xref: watmath net.lang:2388 net.lang.c:8716 > > >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).