Sun Studio 12: Fortran Library Reference

3.2 Character Functions

Table 3–5 Fortran 77 Character Functions

Intrinsic Function  

Definition  

No. of Args.  

Specific 

Names  

Argument Type  

Function Type  

Conversion See Note (5).

Conversion to character 

Conversion to integer 

See also:

Table 3–2.

CHAR

ACHAR ¤

ICHAR

IACHAR ¤

INTEGER

CHARACTER

CHARACTER

INTEGER

Index of a substring 

Location of substring a2 in string a1 

See Note (10).

INDEX

CHARACTER

INTEGER

Length 

Length of character entity 

See Note (11).

LEN

CHARACTER

INTEGER

Lexically greater than or equal 

a1 ≥ a2 

See Note (12).

LGE

CHARACTER

LOGICAL

Lexically greater than 

a1 > a2 

See Note (12).

LGT

CHARACTER

LOGICAL

Lexically less than or equal 

a1≤ a2 

See Note (12).

LLE

CHARACTER

LOGICAL

Lexically less than 

a1 < a2 

See Note (12).

LLT

CHARACTER

LOGICAL

On an ASCII platform (including Sun systems):

On a non-ASCII platform, ACHAR and IACHAR were intended to provide a way to deal directly with ASCII.