apply() is an important component of languages that support higher-order programming. It's usually built into a language, but it isn't really available in C. Since C has support for dynamic typing (in the form of void*) and first-class functions, I thought it might be possible to implement apply() in C. My approach was to mmap() an executable buffer and then craft a payload that loads arguments to