X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fpools.h;h=6058c5eefc9549de214660e3df2c7eea22805fb6;hb=1b0a16240bdcc069979452f56fbbf2299625be78;hp=a055ef2623763f2da93ca77632ca60d168df9c7d;hpb=b9e396031daf6fd8d75d9050923941d545212dd1;p=libucw.git diff --git a/lib/pools.h b/lib/pools.h index a055ef26..6058c5ee 100644 --- a/lib/pools.h +++ b/lib/pools.h @@ -1,7 +1,7 @@ /* * Sherlock Library -- Memory Pools * - * (c) 1997--2003 Martin Mares + * (c) 1997--2004 Martin Mares * * This software may be freely distributed and used according to the terms * of the GNU Lesser General Public License. @@ -60,4 +60,14 @@ mp_end_string(struct mempool *p, void *stop) p->free = stop; } +/* pool-str.c */ + +char *mp_strdup(struct mempool *, char *); +char *mp_multicat(struct mempool *, ...); +static inline char * +mp_strcat(struct mempool *mp, char *x, char *y) +{ + return mp_multicat(mp, x, y, NULL); +} + #endif