How to Determine the Size of a User-Defined Data Type
PSS ID Number: 149753
Article Last Modified on 11/3/1999
The information in this article applies to:
- Microsoft Fortran PowerStation for Windows 95 and Windows NT 4.0
This article was previously published under Q149753
SUMMARY
The Fortran Run-Time Library included with Microsoft Fortran PowerStation
version 4.0 does not include an intrinsic function or subroutine that can
return the number of bytes in use by a single user-defined data type
variable. You can, however, use the LOC() intrinsic function to obtain the
starting addresses of two user-defined data type variables, contiguous in
memory, and subtract their addresses resulting in the number of bytes used
by one variable of this type.
Additional query words: 4.00 kbinf
Keywords: kbcode kbLangFortran KB149753
Technology: kbAudDeveloper kbFORTRANPower400NT kbFortranSearch kbZNotKeyword8