summaryrefslogtreecommitdiffstats
path: root/include/xfuncs.h
blob: 940a1d67ed1ca41264ef70c74576be7c40955731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __XFUNCS_H
#define __XFUNCS_H

#include <linux/types.h>

void *xmalloc(size_t size);
void *xrealloc(void *ptr, size_t size);
void *xzalloc(size_t size);
char *xstrdup(const char *s);
char *xstrndup(const char *s, size_t size);
void* xmemalign(size_t alignment, size_t bytes);
void* xmemdup(const void *orig, size_t size);

#endif /* __XFUNCS_H */