aboutsummaryrefslogtreecommitdiff
path: root/fake-lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'fake-lib.h')
-rw-r--r--fake-lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fake-lib.h b/fake-lib.h
index c95169a..9dd8049 100644
--- a/fake-lib.h
+++ b/fake-lib.h
@@ -5,6 +5,7 @@ void c16cpy(char16_t *out, uint32_t *outsize, char *s);
5void *smalloc(size_t size); 5void *smalloc(size_t size);
6void *srealloc(void *ptr, size_t size); 6void *srealloc(void *ptr, size_t size);
7char *dupcat(const char *str, ...); 7char *dupcat(const char *str, ...);
8unsigned le(const unsigned char *buf, size_t len, size_t off, size_t nbytes);
8 9
9#define snew(type) ((type *)smalloc(sizeof(type))) 10#define snew(type) ((type *)smalloc(sizeof(type)))
10#define snewn(n,type) ((type *)smalloc((n)*sizeof(type))) 11#define snewn(n,type) ((type *)smalloc((n)*sizeof(type)))