this repo has no description
1# local.h
2
3A small header-only C library that wraps `__attribute__((cleanup(...)))` to provide a nice interface for automatic destructors.
4
5## Usage
6
7```c
8#include <local.h>
9
10int main(void) {
11 local int *data = malloc(sizeof(int) * 64);
12 ...
13}
14```
15
16To specify the cleanup function:
17
18```c
19 local_(free) int *data = malloc(sizeof(int) * 64);
20```