blob: 20dfeec8440a837b5b879015b05f23da0ed12382 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 */
|