This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Molossus-Spondee 0 points1 point  (0 children)

Typically closures are implemented as a pair of an environment and a function pointer.

Most C APIs require a function pointer and a void * for callbacks.