Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

ptr2f

Name: Anonymous 2007-05-15 0:02 ID:1KuTlT0+

is it possible to pass a pointer that points to a function with arguments to a function that expects a pointer to a function that has arguments?
(in c)
thanks

Name: Anonymous 2007-05-15 1:02 ID:tr3ePyu+

int blah(int i) { return i + 1; }
void zuh(int (*param)(int)) { param(2); }
int main() { zuh(blah); }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List