How to create C function pointers

Mildred mildred593 at online.fr
Thu Sep 7 09:53:00 PDT 2006


> extern (C) {
>    typedef int function(int) CFuncPtr;
> }
> 
> void main() {
>     CFuncPtr ptr = &c_function;
> }
> 
> 
> BTW, this type of question really belongs in the 'D.learn' newgroup.

Thanks for the answer,
I didn't knew in which newsgroup I had to post, so I posted here,
thanks for that clarification. I'll post there the next time.

Mildred
-- 
Mildred       <xmpp:mildred at jabber.fr> <http://mildred632.free.fr/>
Clef GPG :    <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]



More information about the Digitalmars-d mailing list