Skip to content

Conversation

@joshiajanimesh
Copy link

The existing example of Callback using Function pointer is great for a beginner idea.
My attempt is to build upon it giving more of a real-world example where:

  1. function signatures are in .h (header files)
  2. typdef is used for function pointer definition
  3. main uses a register callback function to pass function pointer to the Callback function

This is evident of the Callback being a higher layer function and it is called by a function in another layer of the program. It does this by pointer to the Callback.

aJoshi - [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant