repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding upstream version 4.00~pre54+dfsg.
[syslinux-debian/hramrach.git]
/
com32
/
lib
/
zalloc.c
blob
0e6ed28d4eb5f4c266f5a1f396251e70d5a16851
1
/*
2
* zalloc.c
3
*/
4
5
#include <stdlib.h>
6
#include <string.h>
7
8
void
*
zalloc
(
size_t
size
)
9
{
10
void
*
ptr
;
11
12
ptr
=
malloc
(
size
);
13
if
(
ptr
)
14
memset
(
ptr
,
0
,
size
);
15
16
return
ptr
;
17
}