On Wed, Jun 07, 2006 at 09:32:23PM +1000, Bojan Smojver wrote:
> On Wed, 2006-06-07 at 12:29 +0100, Joe Orton wrote:
>
> > Yup, exactly what I had in mind ;)
>
> Cool. I have those little functions all over my own code, but I never
> actually thought about their usefulness until now. Well, you learn
> something new every day :-)
Another useful thing that can be done in general is to do e.g.
static apr_status_t blah(void *data)
{
char *foo = data;
the_function(foo)
since passing a variable of the right type to the function rather than
just void * gives better type-safety.
joe