Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
need addititional arg in given callback
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Keith Thompson, post: 2413473"] If you can't change the type of the argument passed to the callback function, you could make its argument an index into a data structure from which it can retrieve as much information as you care to provide. The simplest such data structure, of course, is an array (presumably of structs or of pointers to structs). If you don't know in advance how many elements you'll need, allocate it dynamically and use realloc() as needed to expand it. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
need addititional arg in given callback
Top