Next: AIMAG, Previous: ADJUSTL, Up: Intrinsic Procedures
ADJUSTR
— Right adjust a stringADJUSTR(STR)
will right adjust a string by removing trailing spaces.
Spaces are inserted at the start of the string as needed.
STR = ADJUSTR(STR)
STR | The type shall be CHARACTER .
|
CHARACTER
where trailing spaces
are removed and the same number of spaces are inserted at the start
of STR.
program test_adjustr character(len=20) :: str = 'gfortran' str = adjustr(str) print *, str end program test_adjustr