[vox-tech] malloc() is ... old school?

Tim Riley vox-tech@lists.lugod.org
Fri, 21 Mar 2003 15:41:39 -0800


"Micah J. Cowan" wrote:

> On Fri, Mar 21, 2003 at 02:45:37PM -0800, Tim Riley wrote:
> >

<snip>

>   void **memory;
>   memory = calloc(1, sizeof *memory);
>   if (*memory) ...
>

vs.

PERSON *person = (PERSON *)calloc( 1, sizeof( PERSON ) );

if ( person->zip_code )
{
    printf( "The zip code is populated with %s\n",
            person->zip_code );
}

My assertion is that the sky is blue, and your argument is
no, the grass is green.

<snip>