summaryrefslogtreecommitdiff
path: root/src/z-virt.h
blob: 52696518158fba2750390169eccc0fc89d44c3b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 1997 Ben Harrison
 *
 * This software may be copied and distributed for educational, research,
 * and not for profit purposes provided that this copyright and statement
 * are included in all such copies.
 */

#pragma once

#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
 * Calloc wrapper which aborts if NULL is returned by calloc
 */
extern void *safe_calloc(size_t nmemb, size_t size);

#ifdef __cplusplus
} /* extern "C" */
#endif