~nytpu/arena.c

Two-file C Arena Allocator
fix license issue
initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~nytpu/arena.c
read/write
git@git.sr.ht:~nytpu/arena.c

You can also use your local clone with git send-email.

#arena.c — Two-file C Arena Allocator

version: 3.0.0 standards: C99 builds.sr.ht status license: MPL-2.0

Implements a simple arena allocator. It is particularly useful for functions with lots of temporary allocations (strings, linked lists, etc.) as you don't have to keep track of every little allocation, and can instead free all memory used afterwards.

See arena.h for more information.

#Requirements

  • C compiler and libc supporting the C99 standard.

#Contributing

This repo is part of the Smol C Libs project.

The upstream URL of this project is https://git.sr.ht/~nytpu/arena.c. Send suggestions, bugs, patches, and other contributions to ~nytpu/public-inbox@lists.sr.ht. For help sending a patch through email, see https://git-send-email.io. You can browse the list archives at https://lists.sr.ht/~nytpu/public-inbox.

Copyright (C) 2021 nytpu <alex [at] nytpu.com>.

Licensed under the terms of the Mozilla Public License, version 2.0. You can view a copy of the MPL in LICENSE or at https://mozilla.org/MPL/2.0.

#Standards

The source code conforms to ISO/IEC 9899:1999 ("ISO C99") in all cases where said standard is applicable.