[UP]


Manual Reference Pages  - adjustr (3)

NAME

adjustr(3f) - [FORTRAN:INTRINSIC:CHARACTER] Right adjust a string

SYNTAX

result = ADJUSTR(STRING)

DESCRIPTION

adjustr(STRING) will right adjust a string by removing trailing spaces. Spaces are inserted at the start 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 trailing spaces are removed and the same number of spaces are inserted at the start of STRING.

EXAMPLE

Sample program:

    program demo_adjustr
    implicit none
    character(len=20) :: str = ’gfortran’
       str = adjustr(str)
       print *, str
    end program demo_adjustr

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(3), adjustr(3), index(3), len_trim(3), scan(3), verify(3)
nonelemental:
  repeat(3), trim(3)


adjustr (3) March 11, 2021
Generated by manServer 1.08 from 9c34108a-f2d2-4c61-a99f-e4c388187fa3 using man macros.