**AddToArray(PRArenaPool *arena, void **array, void *element)
AddToArray(PRArenaPool *arena, void **array, void *element)
**AddToArray(PRArenaPool *arena, void **array, void *element){    unsigned count;    void **ap;    /* Count up number of slots already in use in the array */    count = 0;    ap = array;    if (ap) {	while (*ap++) {	    count++;	}    }    if (array) {	array = (void**) PORT_ArenaGrow(arena, array,					(count + 1) * sizeof(void *),					(count + 2) * sizeof(void *));    } else {	array = (void**) PORT_ArenaAlloc(arena, (count + 2) * sizeof(void *));    }    if (array) {	array[count] = element;	array[count+1] = 0;    }    return array;}