Next: , Previous: ACOS, Up: Intrinsic Procedures


8.6 ADJUSTL — Left adjust a string

Description:
ADJUSTL(STR) will left adjust a string by removing leading spaces. Spaces are inserted at the end of the string as needed.
Option:
f95, gnu
Class:
elemental function
Syntax:
STR = ADJUSTL(STR)
Arguments:

STR The type shall be CHARACTER.

Return value:
The return value is of type CHARACTER where leading spaces are removed and the same number of spaces are inserted on the end of STR.
Example:
          program test_adjustl
            character(len=20) :: str = '   gfortran'
            str = adjustl(str)
            print *, str
          end program test_adjustl