Code: for( j = 0,; lastch != ','; j++, i++) Just reread the line carefully. Quzah.
for( j = 0,; lastch != ','; j++, i++)
Hope is the first step on the road to disappointment.