adjustr in Fortran Wiki
## 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 - `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 {: lang=fortran } ## See also [[adjustl]], [[trim]] category: intrinsics
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル