From: Cherniavsky Beni Newsgroups: comp.os.msdos.djgpp Subject: Re: calculating size (like sizeof in TurboC++) Date: Sun, 18 Jun 2000 16:21:07 +0200 Organization: Technion Lines: 21 Message-ID: <394CDAD3.2B075EC3@crosswinds.net> References: <642A954DD517D411B20C00508BCF23B0012B16CF AT mail DOT sauder DOT com> NNTP-Posting-Host: 132.68.54.8 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.06 [en] (WinNT; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Steamer wrote: > > Kurt Aistinger wrote: > > > I recently started programming with djgpp+allegro and now I'd like to know > > what function djgpp provides for calculating the size of a variable ( like > > sizeof()). > > The sizeof operator is standard C, so DJGPP supports it. > > S. It might be useful to emphasize that sizeof(expression) is not a function that can be implemented by any library but an *operator*. It is computed at *compile time* as a property of the type of the expression (which is never computed). -- Beni Cherniavsky (also scben AT t2 in technion) What's the exterior of a domain? When one takes a bath we shout "Man overboard!".