Re: Re: Convert zval array to char **

From: Date: Fri, 22 Jul 2005 17:30:57 +0000
Subject: Re: Re: Convert zval array to char **
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2640@lists.php.net to get a copy of this message
That would be clearer written as: ppHashElements = safe_emalloc(array_count + 1, sizeof(char*), 0); --Wez. On 7/22/05, Sara Golemon <pollita@php.net> wrote: > > array_count = zend_hash_num_elements(arr_hash); > > > /* Allocate a vector of char* pointers to point at individual string > elements > * Leave room for one additional pointer at the end to act as a > terminating NULL */ > ppHashElements = safe_emalloc(array_count, sizeof(char*), > sizeof(char*));

« previous php.pecl.dev (#2640) next »