[UP]


Manual Reference Pages  - adjustl (3)

NAME

ADJUSTL(3f) - [FORTRAN:INTRINSIC:CHARACTER] Left adjust a string

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

SYNTAX

result = ADJUSTL(STRING)

DESCRIPTION

ADJUSTL(STRING) will left adjust a string by removing leading spaces. Spaces are inserted at the end of the string as needed.

ARGUMENTS

STRING - the type shall be CHARACTER.

RETURN VALUE

The return value is of type CHARACTER and of the same kind as STRING where leading spaces are removed and the same number of spaces are inserted on the end of STRING.

EXAMPLE

Sample program:

    program demo_adjustl
      character(len=20) :: str = ’   gfortran’
      str = adjustl(str)
      print *, str
    end program demo_adjustl

STANDARD

[[Fortran 95]] and later

CLASS

Elemental function

SEE ALSO

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


adjustl (3) March 18, 2019
Generated by manServer 1.08 from 127115a5-2a4b-467d-933f-8ab1decb63d0 using man macros.