Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 5
    If you want to "turn a function pointer into a type", you don't need the boost library. Just use typedef; it's simpler and doesn't require any extra libraries. Commented Apr 9, 2016 at 11:50
  • 13
    Isn't boost library C++? Why do you mention it in a C question? Commented Oct 2, 2020 at 12:48
  • 1
    For functions that use a different calling convention, place the calling convention before the first *. Like this: typedef void(__stdcall* funcPtr)(int arg1, int arg2); Commented Sep 19, 2021 at 18:04