library/src/utility/BP-StringUtilities.cc
// Destroys an array of pointers, similar to that which is
// used in the fmtTable used by the test generator.
Destroys an array of pointers, similar to that which is
used in the fmtTable used by the test generator.
Destroys an array of pointers similar to that which is used in the fmtTable used by the test generator .
size_t BP_DestroyPointerArray(void ** ptrs, size_t ptrCount) {
	if (!ptrs)
		return ERR_FAILURE;
	size_t x = 0;
	for (x = 0; x < ptrCount; x++)
	{
		if(ptrs[x])
			bpfree(ptrs[x]);
		ptrs[x] = NULL;
	}
	return ERR_SUCCESS;
}
size_t BP_DestroyPointerArray ( void * * ptrs , size_t ptrCount ) { if ( ! ptrs ) return ERR_FAILURE ; size_t x = 0 ; for ( x = 0 ; x < ptrCount ; x ++ ) { if ( ptrs [ x ] ) bpfree ( ptrs [ x ] ) ; ptrs [ x ] = NULL ; } return ERR_SUCCESS ; }
Destroys an array of pointers, similar to that which is
used in the fmtTable used by the test generator.
Destroys an array of pointers similar to that which is used in the fmtTable used by the test generator .
// only free non-null pointers // overwrite pointer with null