13 lines
268 B
C
13 lines
268 B
C
#ifndef ACC_UTIL_MISC_H
|
|
#define ACC_UTIL_MISC_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define ACC_ARRAY_LENGTH(a) (sizeof((a))/sizeof(*(a)))
|
|
|
|
void* malloc_or_fail(size_t s, const char *func_name);
|
|
bool strequal(const char *s1, const char *s2);
|
|
char* strclone(const char *s);
|
|
|
|
#endif
|