]>
git.ipfire.org Git - thirdparty/lldpd.git/blob - src/realloc.c
1 /* realloc replacement that can reallocate 0 byte or NULL pointers*/
7 /* Reallocate an N-byte block of memory from the heap.
8 If N is zero, allocate a 1-byte block. */
10 rpl_realloc(void *ptr
, size_t n
)
12 if (!ptr
) return malloc(n
);
14 return realloc(ptr
, n
);