ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:strrepeat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
functions:strrepeat [2017/03/13 17:32] – created korshunfunctions:strrepeat [2017/03/15 16:20] korshun
Line 1: Line 1:
 +====== StrRepeat ======
 {{tag>todo}} {{tag>todo}}
 +''str StrRepeat(str s, int n);''
 +
 +===== Description =====
 +Returns the string repeated n times. If n is 0, returns empty string.
 +
 +===== Examples =====
 +<code>
 +StrRepeat("abc", 3) -> "abcabcabc"
 +StrRepeat("abc", 0) -> ""
 +StrRepeat("abc", 1) -> "abc"
 +</code>
functions/strrepeat.txt · Last modified: 2017/06/12 17:27 by korshun