Re: [exim] Off-topic coding style (was: [BUG?] in src/auths/…

Pàgina inicial
Delete this message
Reply to this message
Autor: John Hall
Data:  
A: exim-users
CC: Peter D. Gray, Chris Lightfoot
Assumpte: Re: [exim] Off-topic coding style (was: [BUG?] in src/auths/pwcheck.c)
On 10/10/06, Michael J. Tubby G8TIC <mike.tubby@???> wrote:

> with a local implementation (in library code) of zmalloc that looks like:
>
> void * zmalloc(size_t size)
> {
>    void * p = malloc(size);
>    if (p)
>        memset(p, 0, size);
>    return p;
> }


I'm in the habit of just using calloc(1, size), which zeroes memory.

regards,
John