C conforming for loop, proper C linkage.
Merge pull request #3 from ambitslix/master

C conforming for loop, proper C linkage.