apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: Question about apr_sockaddr_ip_get()
Date Mon, 17 Feb 2003 15:00:16 GMT
Damir Dezeljin wrote:

> I want to retrive an IP addr string from the apr_sockaddr_t so I used
> apr_sockaddr_ip_get(). The first argument of this function is char ** .


> So the question is ... do I have to first alocate the memory for the
> destination string?

APR allocates the storage from the pool for the apr_sockaddr_t.  You 
don't have to do any preparation.

I'll add a comment to that effect to the description of the function.



View raw message