Question about apr_sockaddr_ip_get()

2003-02-17 Thread Damir Dezeljin
Hi. 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 ** . Because I have to add a pointer to a pointer I think that the function allocate automaticaly the memory for the destination char * . On the other hand

Re: Question about apr_sockaddr_ip_get()

2003-02-17 Thread Jeff Trawick
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