Skip to content
Snippets Groups Projects
mem.h 404 B
Newer Older
Bruce Cowan's avatar
Bruce Cowan committed
/*
 * SPDX-FileCopyrightText: 2018, 2019 Bruce Cowan <bruce@bcowan.me.uk>
Bruce Cowan's avatar
Bruce Cowan committed
 *
Bruce Cowan's avatar
Bruce Cowan committed
 * SPDX-License-Identifier: Apache-2.0
Bruce Cowan's avatar
Bruce Cowan committed
 */

Bruce Cowan's avatar
Bruce Cowan committed
#pragma once

#include <stddef.h>

Bruce Cowan's avatar
Bruce Cowan committed
void * check_calloc       (size_t nmemb,
                           size_t size);
void * check_malloc       (size_t  size);
void * check_reallocarray (void   *ptr,
                           size_t  nmemb,
                           size_t  size);