comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Size of variables in bytes?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Size of variables in bytes? [message #9851] Tue, 02 September 1997 00:00
Christian Salow is currently offline  Christian Salow
Messages: 1
Registered: September 1997
Junior Member
Hello,

is it true that there is no function in IDL 5.0.2 to get the size of a
variable in bytes (except structures)?

An integer variable seams to be 2 bytes indpendent from the system
architecture but a string seams to be 1 byte per character on a Win32
machine and 2 bytes on a SunOS-machine. I wrote a string to an
unformatted output file and looked at the filepointer to get the size in
bytes.

Is the following true and is it machine independent?

byte 1b
integer 2b
long int 4b
floating 4b
double 8b
string ???
structure n_tags(var, /length)

What's about:

complex floating
double-precision complex
pointer
object reference

Thanks for your help

Bye Chris

--

Name Christian Salow
Tel +49(0)6131 42783
Fax +49(0)6131 42784
eMail csalow@chaos.bwl.uni-mainz.de
home http://wiwi.uni-mainz.de/~csalow/welcome.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: question: programm code area full
Next Topic: Interpolate problems

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:14:11 PDT 2025

Total time taken to generate the page: 0.00605 seconds