ACPI AML decompiler w/ CFG recovery and structured pseudocode
29

Configure Feed

Select the types of activity you want to include in your feed.

tobi / src / mem.h
433 B 22 lines
1#ifndef TOBI_MEM_H 2#define TOBI_MEM_H 3 4#include <stddef.h> 5 6void *tobi_xmalloc(size_t n); 7 8void *tobi_xcalloc(size_t count, size_t size); 9 10void *tobi_xrealloc(void *ptr, size_t n); 11 12size_t tobi_xadd_size(size_t a, size_t b); 13 14size_t tobi_xmul_size(size_t a, size_t b); 15 16size_t tobi_xgrow_cap(size_t current, size_t required, size_t initial); 17 18char *tobi_xstrdup(const char *s); 19 20char *tobi_xstrndup(const char *s, size_t n); 21 22#endif