home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Shareware Magazine 1996 December
/
CD_shareware_12-96.iso
/
DOS
/
Programa
/
CCDL122.ZIP
/
CLIBS
/
ALLOC
/
CALLOC.C
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-07-05
|
214 b
|
12 lines
#include <stdlib.h>
#include <string.h>
void *calloc(size_t numelms, size_t elmsize)
{
unsigned size = numelms * elmsize;
void *pos;
pos = malloc(size);
if (pos)
memset(pos,0,size);
return pos;
}