Added function pointers to C sample.