summaryrefslogtreecommitdiffstats
path: root/hw4/l4basic/memwrap.h
blob: 3d2ad5bfdcf28e5adf2e3dfa6fdda77415350a7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef MEMORY_FUNCTION_WRAPPER
#define MEMORY_FUNCTION_WRAPPER

#include <l4str.h>

#include <stddef.h>

void*   xmalloc     (size_t size);
void*   xrealloc    (void* ptr, size_t size);
char*   xstrdup     (const char* str);

#endif /* MEMORY_FUNCTION_WRAPPER */