library/src/utility/BP-NumberUtilities.cc
// Counts pointers in a null terminated pointer array and returns in size_t.
Counts pointers in a null terminated pointer array and returns in size_t.
Counts pointers in a null terminated pointer array and returns in size_t .
size_t BP_CountNullTerminatedPtrArray(char **count_array)
{
	if(!count_array)
		return 0;
	if(!count_array[0])
		return 0;
	size_t i = 0;
	for(; count_array[i]; i++){}
	return i;
}
size_t BP_CountNullTerminatedPtrArray ( char * * count_array ) { if ( ! count_array ) return 0 ; if ( ! count_array [ 0 ] ) return 0 ; size_t i = 0 ; for ( ; count_array [ i ] ; i ++ ) { } return i ; }
Counts pointers in a null terminated pointer array and returns in size_t.
Counts pointers in a null terminated pointer array and returns in size_t .
// count the items // return indicating success