blob: e8303dcba3d02ff0c92e397b8fc4db0ff9ee11f6 (
plain) (
tree)
|
|
#include "espik_error.h"
#include <stdio.h> /* fprintf */
#include <stdlib.h> /* exit */
void chk_malloc (void *ptr)
{
if (ptr == NULL)
{
fprintf (stderr, "Malloc failed\n");
fprintf (stderr, "exiting ...\n");
exit (128);
}
}
|