summaryrefslogtreecommitdiffstats
path: root/xmalloc.h
blob: 759568a9ea00f47aca770c28acd6f22c872bd1ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef XMALLOC_H
#define XMALLOC_H

void *
rpl_malloc(size_t size);

void *
rpl_realloc(void * ptr, size_t size);

void *
xmalloc(size_t size);

void *
xcalloc(size_t n, size_t size);

void *
xrealloc(void * ptr, size_t size);

char *
xstrdup(const char * p);

char *
xstrndup(const char * str, size_t len);

#endif