Menu
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
Functions taking pointers to different types as arguments
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="lawrence.jones, post: 2398170"] There's no such type. What you're trying to do is not possible in portable code. There's no guarantee that FILE * and void * are even the same size let alone have the same representation, so you can't have a single call that can invoke either one, you have to have separate calls or write a wrapper function for one of the functions that has the same type as the other function. -Larry Jones Let's pretend I already feel terrible about it, and that you don't need to rub it in any more. -- Calvin [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Functions taking pointers to different types as arguments
Top