This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Call problem..
- To: bug-gcc at gnu dot org
- Subject: Re: Call problem..
- From: kanata <kanata at celab1 dot ee dot ntou dot edu dot tw>
- Date: Tue, 13 Jun 2000 17:40:22 +0800
Hope this can help you...
You have to cast the constant to the kind of function you want to call.
...however I suppose this isn't the right maillist for this question...
:)))
typedef void (*const_call)(int,...);
int main()
{
int arg1,arg2,arg3;
((const_call)0x12345678) (arg1,arg2,arg3);
return 0;
}
Bye
benedetto
Thank you Benedetto, It works!!!
And I am sorry for send wrong mail to wrong maillist...
Can you tell me the correct maillist that I can ask problem there??
Thanks for your kindly support..
Kanata