Note that buff[] is a char array while pf is a pointer to a function returning void - the two are mutually exclusive.