diff options
Diffstat (limited to 'client/libacron/private/helpers.h')
-rw-r--r-- | client/libacron/private/helpers.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/client/libacron/private/helpers.h b/client/libacron/private/helpers.h new file mode 100644 index 0000000..20dfeec --- /dev/null +++ b/client/libacron/private/helpers.h @@ -0,0 +1,22 @@ +/* + * Created by yuuta on 7/19/22. + */ + +#ifndef LIBAC_HELPERS_H +#define LIBAC_HELPERS_H + +#include <stdbool.h> + +#define SALLOC(s, out) alloc(NULL, 1, sizeof(s), true, (void **) out) + +int alloc(void *existing, + unsigned int count, + unsigned int bytes, + bool zero_out, + void **out); + +int strdup2(const char *str, char **out); + +char *strerror2(int errnum); + +#endif /* LIBAC_HELPERS_H */ |