good point:
void* calloc(UInt32 a,UInt32 b){
void* tmp;
tmp = malloc(a*b);
if(tmp){
MemSet(tmp,a*b,0);
}
return tmp;
}
On 9/9/07, Szymon Ulatowski <[EMAIL PROTECTED]> wrote:
> Dmitry Grinberg wrote:
>
> > #define calloc(a,b) malloc(a*b)
> >
>
> i think this is not entirely correct: unlike malloc, calloc must clear
> the memory block before returning.
> (unless MemPtrNew already does that?)
>
> sz.
>
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>
--
Best Regards,
Dmitry Grinberg
(847) 226 9295
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/