how to write c code function implementing the first heuristic algorithm
void binpack_firstfit(int item)
{
int s = 0;
int bin_Value;
do{
bin_Value = bins[s];
if (bin_Value + item < BIN_VOLUME){
bins[s] = bin_Value + item;
s = NUM_BINS;
}
}while(s++ < NUM_BINS);
}