HP 3000 Manuals

func strrpt [ System Debug Reference Manual ] MPE/iX 5.0 Documentation


System Debug Reference Manual

func strrpt 

String repeat.  Returns a string composed of repeated occurrences of a
source string.

Syntax 

     strrpt (source count)

Formal Declaration 

     strrpt:str (source:str count:u32)

Parameters 

 source          The source string to repeat.

 count           The number of times to repeat source.

Examples 

     $nmdebug > var digits:str "0123456789" 
     $nmdebug > wl strrpt(digits, 7) 
     0123456789012345678901234567890123456789012345678901234567890123456789

Print out the string of digits "0 ..  9" repeated seven times.

Limitations, Restrictions 

If the resultant string is larger than the maximum supported string
length (see the STRMAX function), it is truncated at the maximum length.



MPE/iX 5.0 Documentation