diff options
Diffstat (limited to 'fake-lib.h')
-rw-r--r-- | fake-lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -5,6 +5,7 @@ void c16cpy(char16_t *out, uint32_t *outsize, char *s); | |||
5 | void *smalloc(size_t size); | 5 | void *smalloc(size_t size); |
6 | void *srealloc(void *ptr, size_t size); | 6 | void *srealloc(void *ptr, size_t size); |
7 | char *dupcat(const char *str, ...); | 7 | char *dupcat(const char *str, ...); |
8 | unsigned 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))) |