httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: Returning large objects from a user implemented hook
Date Wed, 13 Feb 2008 21:14:35 GMT
On Wed, 13 Feb 2008 16:04:04 -0500
David Carter <apache@entertain-me.com> wrote:

> 2. Pass in a pointer to memory that will contain the data. This
> segfaults.

The method is fine, but you have a bug.

> 3. Allocate memory and return a pointer. Wouldn't this segfault as
> well?

That's fine too.  Only you can say which method is more efficient.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Mime
View raw message