Hacker News new | ask | show | jobs
by tinco 3643 days ago
What idiomatic C code uses thunks? Is this an interpreter/runtime for a functional language or something? Or do some optimizers introduce thunks?
2 comments

`qsort_r(3)` in libc, for example. It's not uncommon in idiomatic C code.
This likely calls a UEFI protocol, which are typically called this way.