921232ef9a1527f02356e2af8e19a28628fe1774 kent Sat Aug 17 12:59:18 2019 -0700 Adding lmJoinStrings. diff --git src/inc/localmem.h src/inc/localmem.h index b96e387..274435d 100644 --- src/inc/localmem.h +++ src/inc/localmem.h @@ -74,16 +74,19 @@ #define lmAllocArray(lm, pt, size) (pt = lmAlloc(lm, sizeof(*pt) * (size))) /* Shortcut to allocating an array in local mem and * assigning pointer to it. */ char **lmCloneRow(struct lm *lm, char **row, int rowSize); /* Allocate an array of strings and its contents cloned from row. */ char **lmCloneRowExt(struct lm *lm, char **row, int rowOutSize, int rowInSize); /* Allocate an array of strings with rowOutSize elements. Clone the first rowInSize elements of * row into the new array; leave remaining elements NULL if rowOutSize is greater than rowInSize. * rowOutSize must be greater than or equal to rowInSize. */ void lmRefAdd(struct lm *lm, struct slRef **pRefList, void *val); /* Add reference to list. */ +char *lmJoinStrings(struct lm *lm, char *a, char *b); +/* Return concatenation of a and b allocated in lm */ + #endif//ndef LOCALMEM_H