blob: db9470d5f311f1371fb78bd2dc1e7d74138f9fac [file] [log] [blame]
Jeff Thompson45545092013-07-16 18:36:26 -07001/**
2 * @author: Jeff Thompson
3 * See COPYING for copyright and distribution information.
4 */
5
6#ifndef NDN_NDN_REALLOC_H
7#define NDN_NDN_REALLOC_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/**
14 * Wrap the C stdlib realloc to convert to/from void * to unsigned char *.
15 * This can be used by ndn_DynamicUCharArray_init.
16 * @param array the allocated array buffer to realloc
17 * @param length the length for the new array buffer
18 * @return the new allocated array buffer
19 */
20unsigned char *ndn_realloc(unsigned char *array, unsigned int length);
21
22#ifdef __cplusplus
23}
24#endif
25
26#endif