ds 0.10.0
A C library to safely yet efficiently work with UTF-8–encoded, growable dynamic strings.
alloc.c File Reference

Implementation of the Allocator type, related constants and functions. More...

#include <stdlib.h>
#include "ds/alloc.h"
Include dependency graph for alloc.c:

Go to the source code of this file.

Variables

ds_allocator_t ds_allocator_global = { malloc, realloc, free }
 The global memory allocator. More...
 

Detailed Description

Implementation of the Allocator type, related constants and functions.

Author
Avinash Maddikonda (svass.nosp@m.saka.nosp@m.vi@gm.nosp@m.ail..nosp@m.com)
Since
0.8.0
Date
2023-08-10

Definition in file alloc.c.

Variable Documentation

◆ ds_allocator_global

ds_allocator_t ds_allocator_global = { malloc, realloc, free }

The global memory allocator.

By default, uses the C stdlib malloc, realloc, and free functions, but can be defined to use a custom allocator.

Definition at line 12 of file alloc.c.