RosettaCodeData/Task/Higher-order-functions/C/higher-order-functions-3.c

14 lines
372 B
C
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
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. */
/* ... */
}