ds 0.10.0
A C library to safely yet efficiently work with UTF-8–encoded, growable dynamic strings.
alloc.c
Go to the documentation of this file.
1//! @file ds/alloc.c
2//! @author Avinash Maddikonda (svasssakavi@gmail.com)
3//! @brief Implementation of the @ref ds_allocator_t "Allocator" type, related
4//! constants and functions.
5//! @since 0.8.0
6//! @date 2023-08-10
7
8#include <stdlib.h>
9
10#include "ds/alloc.h"
11
12ds_allocator_t ds_allocator_global = { malloc, realloc, free }; // NOLINT
ds_allocator_t ds_allocator_global
The global memory allocator.
Definition: alloc.c:12
Declaration of the Allocator type, related constants and functions.
An implementation of Allocator can allocate, reallocate (grow, shrink), and deallocate arbitrary bloc...
Definition: alloc.h:28