Next: , Previous: ADJUSTL, Up: Intrinsic Procedures


6.9 ADJUSTR — Right adjust a string

Description:
ADJUSTR(STR) will right adjust a string by removing trailing spaces. Spaces are inserted at the start of the string as needed.
Standard:
F95 and later
Class:
Elemental function
Syntax:
RESULT = ADJUSTR(STR)
Arguments:

STR The type shall be CHARACTER.

Return value:
The return value is of type CHARACTER where trailing spaces are removed and the same number of spaces are inserted at the start of STR.
Example:
          program test_adjustr
            character(len=20) :: str = 'gfortran'
            str = adjustr(str)
            print *, str
          end program test_adjustr
     

See also:
ADJUSTL, TRIM