Re: c function as parameter

2010-05-15 Thread useo6
Simen kjaeraas Wrote: > useo6 wrote: > > > Hello everyone, > > > > I'm trying to create a function which awaits a C function as > > parameter... like this: > > > > void myfunction(void C function(uint, void*)) { > > > > } > &

Re: c function as parameter

2010-05-15 Thread useo6
useo6 Wrote: > Hello everyone, > > I'm trying to create a function which awaits a C function as parameter... > like this: > > void myfunction(void C function(uint, void*)) { > > } > > But... when I try to compile it, I get the follwing error:

Re: c function as parameter

2010-05-15 Thread Simen kjaeraas
useo6 wrote: Hello everyone, I'm trying to create a function which awaits a C function as parameter... like this: void myfunction(void C function(uint, void*)) { } But... when I try to compile it, I get the follwing error: "found 'function' when expecting &#

c function as parameter

2010-05-15 Thread useo6
Hello everyone, I'm trying to create a function which awaits a C function as parameter... like this: void myfunction(void C function(uint, void*)) { } But... when I try to compile it, I get the follwing error: "found 'function' when expecting ')'". Do