Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
mem.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2021, 2024 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __UTILS_MEM_H__
11#define __UTILS_MEM_H__
12
13#include <cstddef>
14
15void *
16z_realloc (void * ptr, size_t size);
17
18void
19z_free_strv (char ** strv);
20
24void *
25realloc_zero (void * pBuffer, size_t oldSize, size_t newSize);
26
27#endif
void * realloc_zero(void *pBuffer, size_t oldSize, size_t newSize)
Reallocate and zero out newly added memory.