for(Rateldx = 0; RateIdx < Num; RateIdx++)
{
NetRate[RateIdx]=
BaseRate[RateIdx]*Rates->Discounts->Factors->Net;
}
:
QuantityDiscount = Rates->Discount->Factors->Net;
for ( i=0; i < Num; i++)
{
NetRate[i] = BaseRate[i] * QuantityDiscount;
}
free() dispose
()
C :
- safe_calloc( ) C calloc() calloc()
calloc( ) NULL
- safe_free( ) C free( )
safe_free( ) C free( )
; safe_free( )
calloc() safe_free()
100
- calloc( ) 1044
104 - 4 ;