can you provided the complete code and not just a snippet?
In your code, you are only declaring the functions, you dont actually call them, is this the problem?
It't a bit uncommon to have some function declarations inside of a for loop, but its legal in C.
Daniel