Example how higher-order functions style is implemented in C programming language using pointers to functions. We have similar functionality like Ruby blocks or JavaScript callbacks when using pointers to functions in C, it's like using a lambda function.
References: The C Programming Language (2nd Edition) - 5.11 Pointers to Functions