Hacker News new | ask | show | jobs
by gryph0n 4207 days ago
Forget the Posix/Win32 platforms, function pointers can be easily found in the Standard C library itself. I believe there are atleast 2 functions taking function pointers as parameters:

1.>'qsort' function takes a function pointer to decide how to compare your data in order to sort it, presumably using quick sort.

2.>'signal' function has a Posix origin, but it did manage to make it into the C standard. It takes a function pointer to decide which function to call on getting a particular signal.