c function as parameter
useo6
useo6 at start.bg
Sat May 15 08:36:08 PDT 2010
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 ')'".
> Does anyone knwo what's wrong with my parameters or is it impossible to create such function?
>
> Thx for help :).
Sorry, I forgot the name of the parameter (I didn't past it here^^)... the function looks like this:
void myfunction(void C function(uint, void*) callback) {
....
}
More information about the Digitalmars-d-learn
mailing list