A function to a pointer? Since when are functions "to" anything? In "point" of fact, in the example you cite, not "onexit", but the function to which "onexit" points, takes as argument a function returning pointer to a function.