aboutsummaryrefslogblamecommitdiffstats
path: root/enmalloc.c
blob: f9818722d90fddbc784c277263749ead155d5821 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                         
            

 
      
                                                        

                              

                                            

                   











                 
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"
#ifndef TEST


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


#else
#include "test.h"

int
main(void)
{
	return 0;
}

#endif