delorie.com/archives/browse.cgi | search |
From: | Cherniavsky Beni <cben AT crosswinds DOT net> |
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: | <w3L25.77278$yR DOT 1322670 AT news DOT chello DOT at> <642A954DD517D411B20C00508BCF23B0012B16CF AT mail DOT sauder DOT com> |
NNTP-Posting-Host: | 132.68.54.8 |
Mime-Version: | 1.0 |
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 <cben AT crosswinds DOT net> (also scben AT t2 in technion) What's the exterior of a domain? When one takes a bath we shout "Man overboard!".
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |