Clicky

Fortran Wiki
adjustl (changes)

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

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

Description

adjustl(string) will left adjust a string by removing leading spaces. Spaces are inserted at the end of the string as needed.

Standard

(削除) Fortran 95 and later (削除ここまで)(追記) Fortran 95 (追記ここまで)(追記) and later (追記ここまで)

Class

Elemental function

Syntax

result = adjustl(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 leading spaces are removed and the same number of spaces are inserted on the end of string.

Example

program test_adjustl
 character(len=20) :: str = ' gfortran'
 str = adjustl(str)
 print *, str
end program test_adjustl

See also

adjustr, trim

category: (削除) Intrinsics (削除ここまで)(追記) intrinsics (追記ここまで)

Revised on April 30, 2009 17:39:43 by Jason Blevins (71.70.142.190) (738 characters / 0.0 pages)
Edit | Back in time (1 revision) | Hide changes | History | Views: Print | TeX | Source | Linked from: Intrinsic procedures, adjustr, len, len_trim, trim

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