pchrs(3)

NAME
pchrs, pstrs - generate a string of n repeated characters or strings

SYNOPSIS
#include <pstring.h>

char *pchrs (pool, char c, int n);
char *pstrs (pool, const char *str, int n);

DESCRIPTION

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.

AUTHOR
Richard Jones <rich@annexia.org>

LICENSE
GNU LGPL (see http://www.gnu.org/)

VERSION
c2lib-1.2.14