aboutsummaryrefslogtreecommitdiffstats
path: root/encalloc.c
blob: de5a2c9f93d00973cb52314f5c93ac669fa324e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"
#ifndef TEST


void *
libsimple_encalloc(int status, size_t n, size_t m) /* TODO test */
{
	void *ret = calloc(n, m);
	if (!ret)
		enprintf(status, "calloc:");
	return ret;
}


#else
#include "test.h"

int
main(void)
{
	return 0;
}

#endif