repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove some unneeded definitions of NULL.
[dragonfly.git]
/
gnu
/
lib
/
libregex
/
test
/
xmalloc.c
blob
d135bc4e87692f6205e928d44b2a7c2951c45912
1
/* $DragonFly: src/gnu/lib/libregex/test/xmalloc.c,v 1.2 2008/06/05 18:01:49 swildner Exp $ */
2
3
#include <stdio.h>
4
extern
char
*
malloc
();
5
6
void
*
7
xmalloc
(
size
)
8
unsigned
size
;
9
{
10
char
*
new_mem
=
malloc
(
size
);
11
12
if
(
new_mem
==
NULL
)
13
{
14
fprintf
(
stderr
,
"xmalloc: request for %u bytes failed.
\n
"
,
size
);
15
abort
();
16
}
17
18
return
new_mem
;
19
}