1 #ifndef NEDIT_MALLOC_H_
2 #define NEDIT_MALLOC_H_
3
4 #include <stddef.h>
5
6 void *NEditMalloc(
size_t size);
7 void *NEditCalloc(
size_t nmemb,
size_t size);
8 void *NEditRealloc(
void *ptr,
size_t new_size);
9 void NEditFree(
void *ptr);
10 char *NEditStrdup(
const char *str);
11 #define NEditNew(type) ((type *) NEditMalloc(
sizeof(type)))
12
13 char *NEditStrndup(
const char *str,
size_t len);
14
15 #endif
16