Remove some unneeded definitions of NULL.
[dragonfly.git] / gnu / lib / libregex / test / xmalloc.c
blobd135bc4e87692f6205e928d44b2a7c2951c45912
1 /* $DragonFly: src/gnu/lib/libregex/test/xmalloc.c,v 1.2 2008/06/05 18:01:49 swildner Exp $ */
3 #include <stdio.h>
4 extern char *malloc ();
6 void *
7 xmalloc (size)
8 unsigned size;
10 char *new_mem = malloc (size);
12 if (new_mem == NULL)
14 fprintf (stderr, "xmalloc: request for %u bytes failed.\n", size);
15 abort ();
18 return new_mem;