diff options
author | ache <ache@FreeBSD.org> | 2004-02-25 02:41:15 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2004-02-25 02:41:15 +0000 |
commit | 492ba90c20eff51f83646872867f3c51f2ab3bfe (patch) | |
tree | 28e8d81c4f492fad0494337e7a3d37f7aa393f87 /gnu/lib/libregex/test/xmalloc.c | |
parent | 0da2f6f92ba9b77e4e4ff2cfd61f406eb413a06a (diff) | |
download | FreeBSD-src-492ba90c20eff51f83646872867f3c51f2ab3bfe.zip FreeBSD-src-492ba90c20eff51f83646872867f3c51f2ab3bfe.tar.gz |
Upgrade to regex from grep 2.4.2
Diffstat (limited to 'gnu/lib/libregex/test/xmalloc.c')
-rw-r--r-- | gnu/lib/libregex/test/xmalloc.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gnu/lib/libregex/test/xmalloc.c b/gnu/lib/libregex/test/xmalloc.c deleted file mode 100644 index aa1c6c4..0000000 --- a/gnu/lib/libregex/test/xmalloc.c +++ /dev/null @@ -1,21 +0,0 @@ -#include <stdio.h> -extern char *malloc (); - -#ifndef NULL -#define NULL 0 -#endif - -void * -xmalloc (size) - unsigned size; -{ - char *new_mem = malloc (size); - - if (new_mem == NULL) - { - fprintf (stderr, "xmalloc: request for %u bytes failed.\n", size); - abort (); - } - - return new_mem; -} |