HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
CHARACTER
Chapter 10296
CHARACTER
Declares entities of type character.
Syntax
CHARACTER [
char-selector
] [[,
attrib-list
] ::]
entity-list
char-selector
specifies the length and kind of the character variable. It takes one of the
following forms:
([LEN=]
len-spec
[, KIND=
kind-param
])
(
len-spec
, [KIND=]
kind-param
)
(KIND=
kind-param
[, LEN=
len-spec
])
*
len-const
[,]
*(
len-spec
[) ,]
where
kind-param
(if specified) must be 1, the default;
len-spec
is either
an asterisk (*) or a specification expression; and
len-const
is an integer
constant. In the last form,
len-param
is enclosed in parentheses, and the
optional comma may be included only if the double colon does not appear in
the type declaration statement. If
len-spec
evaluates to a negative value, a
zero-length string is declared. If
len-spec
is unspecified, the default is 1.
attrib-list
is a list of one or more of the following attributes, separated by commas:
If
attrib-list
is present, it must be followed by the double colon. For
information about individual attributes, see the corresponding statement in
this chapter.
entity-list
is a list of entities, separated by commas. Each entity takes the form:
name
[(
array-spec
)][*
len-spec
][=
initialization-expr
]
Table 10-4
ALLOCATABLE INTRINSIC PRIVATE
DIMENSION OPTIONAL PUBLIC
EXTERNAL PARAMETER SAVE
INTENT POINTER TARGET