NAME

repeat_string

SYNOPSIS

string repeat_string(string, int);

DESCRIPTION

returns a new string

- int <= 0: ""
- int > 0 original string repeated either int times or the maximum number of
  times without getting greater than the maximum string length

maxstrlen = 5:
repeat_string("ab", 3) = "abab"

maxstrlen >=6:
repeat_string("ab", 3) = "ababab"