for loop in test.c