pstrcat, pstrncat - extend a string |
#include <pstring.h> char *pstrcat (pool, char *str, const char *ending); char *pstrncat (pool, char *str, const char *ending, size_t n); |
str is a string allocated in pool. Append ending to str, reallocating str if necessary. |
Because str may be reallocated (ie. moved) you must invoke this function as follows: |
str = pstrcat (pool, str, ending); |
pstrncat is similar to pstrcat except that only the first n characters of ending are appended to str. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
c2lib-1.2.13 |