| pchrs, pstrs - generate a string of n repeated characters or strings |
#include <pstring.h> char *pchrs (pool, char c, int n); char *pstrs (pool, const char *str, int n); |
| pchrs (pool, 'c', n) is similar to the Perl expression 'c' x n. It generates a pool-allocated string of n copies of character 'c'. |
| pstrs (pool, str, n) is similar to the Perl expression str x n. It generates a pool-allocated string of n copies of the string str. |
| Richard Jones <rich@annexia.org> |
| GNU LGPL (see http://www.gnu.org/) |
| c2lib-1.2.13 |