function pointers for loops struct c abi