Clicky

Fortran Wiki
adjustr (changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #3 to #4: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

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 (削除ここまで)(追記) Fortran 95 (追記ここまで)(追記) and later (追記ここまで)

Class

Elemental function

Syntax

result = adjustr(string)

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

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

See also

adjustl, trim

category: intrinsics

Revised on May 1, 2009 16:18:22 by Jason Blevins (152.3.10.27) (742 characters / 0.0 pages)
Edit | Back in time (3 revisions) | Hide changes | History | Views: Print | TeX | Source | Linked from: Intrinsic procedures, adjustl, len, len_trim, trim

AltStyle によって変換されたページ (->オリジナル) /