Add xmemdup0.
authorEric Blake <ebb9@byu.net>
Fri, 9 May 2008 19:54:18 +0000 (13:54 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 9 May 2008 20:01:05 +0000 (14:01 -0600)
commit34ebad3df7a99eea326f9170f2517b5d23873d1b
treeeed672c2998f1938021f08c85e7c7f3e28360237
parent75d3df1811d7e52c553ae874ea7a0d9569780bea
Add xmemdup0.

* lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
implementation.
* lib/xmalloc.c (xmemdup0): New C implementation.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/xalloc.h
lib/xmalloc.c