From: Weiqi Gao 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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