aboutsummaryrefslogtreecommitdiffstats
path: root/envmemalloc.c
blob: 2a93adc073b140708356c045efec0ee6e0003670 (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
26
27
28
29
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST


void *
libsimple_envmemalloc(int status, size_t n, va_list ap) /* TODO test (e[n][v]{mem,array}alloc) */
{
	void *ret;
	int saved_errno = errno;
	errno = 0;
	ret = libsimple_vmemalloc(n, ap);
	if (errno)
		enprintf(status, "libsimple_vmemalloc:");
	errno = saved_errno;
	return ret;
}


#else
#include "test.h"

int
main(void)
{
	return 0;
}

#endif