Adding small function pointers example in C