add a function sample from wiki, http://en.wikipedia.org/wiki/Function_pointer