commit | 4554509c6cfb5b59da861d42979645db9a21239e | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Tue Jul 16 18:36:26 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Tue Jul 16 18:36:26 2013 -0700 |
tree | 78225a77fb87396e00e7ef354a1cf81531e7189c | |
parent | 2ed62fb2b61b9aed8876b3494217b23e47bb9fba [diff] [blame] |
Added ndn_realloc
diff --git a/ndn-cpp/c/util/ndn_realloc.c b/ndn-cpp/c/util/ndn_realloc.c new file mode 100644 index 0000000..397834b --- /dev/null +++ b/ndn-cpp/c/util/ndn_realloc.c
@@ -0,0 +1,12 @@ +/** + * @author: Jeff Thompson + * See COPYING for copyright and distribution information. + */ + +#include <stdlib.h> +#include "ndn_realloc.h" + +unsigned char *ndn_realloc(unsigned char *array, unsigned int length) +{ + return (unsigned char *)realloc(array, length); +}