Clicky

Fortran Wiki
adjustl (Rev #1, changes)

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

Showing changes from revision #0 to #1: (追記) 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

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

Revision from April 24, 2009 15:45:32 by Jason Blevins
Forward in time (to current) | See current | History | Rollback | View: Source | Linked from: Intrinsic procedures, adjustr, len, len_trim, trim

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