forked from thi-ng/tinyalloc
- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtinyalloc.h
More file actions
Latest commit
21 lines (17 loc) · 459 Bytes
/
Copy pathtinyalloc.h
File metadata and controls
21 lines (17 loc) · 459 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifdef__cplusplus
extern"C" {
#endif
#include<stdbool.h>
#include<stddef.h>
boolta_init(constvoid*base, constvoid*limit, constsize_theap_blocks, constsize_tsplit_thresh, constsize_talignment);
void*ta_alloc(size_tnum);
void*ta_calloc(size_tnum, size_tsize);
boolta_free(void*ptr);
void*ta_realloc(void*ptr,size_tnum);
size_tta_num_free();
size_tta_num_used();
size_tta_num_fresh();
boolta_check();
#ifdef__cplusplus
}
#endif