abffeaabe69569cce69dcbab139fd333eaf6641d
angie
  Fri Nov 20 10:01:16 2015 -0800
Libifying lmCloneRow, adding lmCloneRowExt for future use by annoStreamDb.

diff --git src/inc/localmem.h src/inc/localmem.h
index 3a58581..902afe1 100644
--- src/inc/localmem.h
+++ src/inc/localmem.h
@@ -51,16 +51,24 @@
 
 struct slName *lmSlName(struct lm *lm, char *name);
 /* Return slName in memory. */
 
 #define lmAllocVar(lm, pt) (pt = lmAlloc(lm, sizeof(*pt)));
 /* Shortcut to allocating a single variable in local mem and
  * assigning pointer to it. */
 
 #define lmCloneVar(lm, pt) lmCloneMem(lm, pt, sizeof((pt)[0]))
 /* Allocate copy of a structure. */
 
 #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. */
+
 #endif//ndef LOCALMEM_H