#ifndef TOBI_MEM_H #define TOBI_MEM_H #include void *tobi_xmalloc(size_t n); void *tobi_xcalloc(size_t count, size_t size); void *tobi_xrealloc(void *ptr, size_t n); size_t tobi_xadd_size(size_t a, size_t b); size_t tobi_xmul_size(size_t a, size_t b); size_t tobi_xgrow_cap(size_t current, size_t required, size_t initial); char *tobi_xstrdup(const char *s); char *tobi_xstrndup(const char *s, size_t n); #endif