C/C++ Programmer's Guide (G06.25+)

Data Type Correspondence
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
D-6
Table D-5. Structured, Logical, Set, and File Types
C-series
BASIC
-- MAP buffer -- -- -- --
C and C++ -- struct -- -- -- --
COBOL -- 01-level RECORD -- -- -- --
FORTRAN RECORD -- LOGICAL
1
-- -- --
D-series
Pascal
RECORD,
byte-aligned
RECORD, word-
aligned
-- BOOLEAN Set File
SQL-- -- --------
TAL
and
pTAL
Byte-
addressed
standard
STRUCT
pointer
Word-addressed
standard STRUCT
pointer
-- -- -- --
Return
Value Size
(Words)
1 or 2,
depends on
declared
pointer size
1 or 2, depends on
declared pointer
size
1 or 2,
depends on
compiler
directive
111
1. LOGICAL is normally defined as 2 bytes. The LOGICAL*2 and LOGICAL*4 compiler directives redefine
LOGICAL.