Clicky

Fortran Wiki
repeat (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

Concatenates ncopies copies of a string.

Standard

Fortran 95 and later

Class

Transformational function

Syntax

result = repeat(string, ncopies)

Arguments

  • string - Shall be scalar and of type character.
  • ncopies - Shall be scalar and of type integer.

Return value

A new scalar of type character built up from ncopies copies of string.

Example

program test_repeat
 write(*,*) repeat("x", 5) ! "xxxxx"
end program

category: Intrinsics

Revision from April 26, 2009 19:24:48 by Jason Blevins
Forward in time (to current) | See current | History | Rollback | View: Source | Linked from: Intrinsic procedures

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