apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Graham Leggett" <minf...@sharp.fm>
Subject Best practice: arrays of structures
Date Wed, 19 Jan 2005 09:57:11 GMT
Hi all,

What is the best practice for handling arrays of structures? Do you define
an array of pointers to structures, or just an array of structures? Or
does it matter?

In other words this:

    ps->dirconn = apr_array_make(p, 10, sizeof(struct dirconn_entry));

or this:

    ps->dirconn = apr_array_make(p, 10, sizeof(struct dirconn_entry *));

Regards,
Graham
--


Mime
View raw message