library/src/blockclass/BP-BlockClass.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 Block::countNullTerminatedPtrArray(char **count_array)
{
	if(!count_array)
		return 0;
	if(!count_array[0])
		return 0;
	size_t n = 0;
	for(; count_array[n]; n++){}
	return n;
}
size_t Block :: countNullTerminatedPtrArray ( char * * count_array ) { if ( ! count_array ) return 0 ; if ( ! count_array [ 0 ] ) return 0 ; size_t n = 0 ; for ( ; count_array [ n ] ; n ++ ) { } return n ; }
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 .
// ensure we have an array to count // ensure we have at least one position // count the items // return indicating success