summaryrefslogtreecommitdiffstats
path: root/xmalloc.h
blob: b43cbeb4ea7c0e1b2210ae0ef1c642fa22a4a35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef XMALLOC_H
#define XMALLOC_H

void *
xmalloc(size_t size);

void *
xcalloc(size_t num, size_t size);

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

char *
xstrdup(const char * p);

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

#endif