repeat_string Function

private elemental function repeat_string(string, ncopies) result(repeated_string)

Repeats the character sequence hold by the string by the number of specified copies.

Arguments

Type IntentOptional Attributes Name
type(string_type), intent(in) :: string
integer, intent(in) :: ncopies

Return Value type(string_type)


Calls

proc~~repeat_string~~CallsGraph proc~repeat_string repeat_string proc~maybe maybe proc~repeat_string->proc~maybe

Called by

proc~~repeat_string~~CalledByGraph proc~repeat_string repeat_string interface~repeat repeat interface~repeat->proc~repeat_string

Source Code

elemental function repeat_string(string, ncopies) result(repeated_string)
   type(string_type), intent(in) :: string
   integer, intent(in) :: ncopies
   type(string_type) :: repeated_string

   repeated_string = repeat(maybe(string), ncopies)

end function repeat_string