RosettaCodeData/Task/Higher-order-functions/C/higher-order-functions-3.c
2023-07-01 13:44:08 -04:00

13 lines
372 B
C

int* myFuncComplex( double* (*funcParameter)(long* parameter) )
{
long inLong;
double* outDouble;
long *inLong2 = &inLong;
/* ... */
outDouble = (*funcParameter)(&inLong); /* Call the passed function and store returned pointer. */
outDouble = funcParameter(inLong2); /* Same as above with slight different syntax. */
/* ... */
}