[UP]


Manual Reference Pages  - iachar (3)

NAME

iachar(3f) - [FORTRAN:INTRINSIC:CHARACTER] Code in ASCII collating sequence

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Note
Standard
Class
See Also

SYNTAX

result = iachar(c [, kind])

DESCRIPTION

iachar(c) returns the code for the ASCII character in the first character position of C.

ARGUMENTS

C - Shall be a scalar CHARACTER, with intent(in)
KIND - (Optional) An INTEGER initialization expression indicating the kind parameter of the result.

RETURN VALUE

The return value is of type INTEGER and of kind KIND. If KIND is absent, the return value is of default integer kind.

EXAMPLE

Sample program:

    program demo_iachar
      integer i
      i = iachar(’ ’)
    end program demo_iachar

NOTE

See [[ichar]] for a discussion of converting between numerical values and formatted string representations.

STANDARD

[[Fortran 95]] and later, with KIND argument [[Fortran 2003]] and later

CLASS

[[Elemental procedure|Elemental function]]

SEE ALSO

[[achar]], [[char]], [[ichar]]

Functions that perform operations on character strings, return lengths of arguments, and search for certain arguments:
Elemental:
  ADJUSTL, ADJUSTR, INDEX, LEN_TRIM, SCAN, VERIFY;
Nonelemental:
  REPEAT, TRIM


iachar (3) March 18, 2019
Generated by manServer 1.08 from 89d9b9c9-3708-4235-bfdf-db2a4482c0ef using man macros.