ADJUSTR(3f)

DESCRIPTION
ADJUSTR(STRING) will right adjust a string by removing trailing spaces. Spaces are inserted at the start of the string as needed.

STANDARD
Fortran 95 and later

CLASS
Elemental function

SYNTAX
RESULT = ADJUSTR(STRING)

ARGUMENTS

STR The type shall be CHARACTER.

RETURN VALUE
The return value is of type CHARACTER and of the same kind as STRING where trailing spaces are removed and the same number of spaces are inserted at the start of STRING.

EXAMPLE
          program test_adjustr
            character(len=20) :: str = 'gfortran'
            str = adjustr(str)
            print *, str
          end program test_adjustr

SEE ALSO
ADJUSTL, TRIM

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).