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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: John Hall
Datum:  
To: exim-users
CC: Peter D. Gray, Chris Lightfoot
Betreff: 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