Simple C pointer to function example