home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
387b.lha
/
dice_v2.02
/
lib
/
memory
/
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
|
1990-05-30
|
313 b
|
25 lines
/*
* CALLOC.C
*
* (c)Copyright 1990, Matthew Dillon, All Rights Reserved
*
* calloc(elmsize, elms)
*/
#include <stdlib.h>
void *
calloc(elmSize, elms)
size_t elmSize;
size_t elms;
{
void *ptr;
long bytes = elmSize * elms;
if (ptr = malloc(bytes))
clrmem(ptr, bytes);
return(ptr);
}