ns-allinone-2.35/rap/media-app.cc
int QA::AllZero(double *arr, int len)
{
	int i;
  
	for (i=0; i<len; i++)
		if (arr[i] != 0.0)
			// debug("-- arr[%d}: %f\n", i, arr[i]);
			return 0;
	return 1;
}
// return 1 is all first "len" element of "arr" are zero
// and 0 otherwise
return 1 is all first "len" element of "arr" are zero
and 0 otherwise
return 1 is all first " len " element of " arr " are zero and 0 otherwise
int QA::AllZero(double *arr, int len)
{
	int i;
	for (i=0; i<len; i++)
		if (arr[i] != 0.0)
			return 0;
	return 1;
}
int QA :: AllZero ( double * arr , int len ) { int i ; for ( i = 0 ; i < len ; i ++ ) if ( arr [ i ] != 0.0 ) return 0 ; return 1 ; }
return 1 is all first "len" element of "arr" are zero
and 0 otherwise
return 1 is all first " len " element of " arr " are zero and 0 otherwise
// debug("-- arr[%d}: %f\n", i, arr[i]);