delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/01/11:48:29

From: Weiqi Gao <weiqigao AT a DOT crl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: sizeof() but nothing to do with sizeof( some_structure )
Date: Tue, 30 Nov 1999 19:17:44 -0600
Organization: CRL Network Services
Lines: 13
Message-ID: <38447738.8A0588E4@a.crl.com>
References: <38447026 DOT 1C29B562 AT id-base DOT com>
NNTP-Posting-Host: a116019.stl1.as.crl.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i586)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"sephiroth AT id-base DOT com" wrote:
> 
> Just wondering if sizeof() is actually defined in the header files( if
> it is, which one? ) or is it a function built into the compiler? I have
> looked through loads of header files, and have found no trace of it.
> Also, what data type does it return? Thanx in advance for any help.

'sizeof' is an "operator" in the C language, just as '+' and '-' are,
not a function.  See K&R.

-- 
Weiqi Gao
weiqigao AT a DOT crl DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019