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 0:57 ID:tr3ePyu+

void *blah(void *(*sub)(void)) {
  return (void *)0;
}

main() {
  void *(*something)(void *(*sub)(void)) = blah;
  something((void *)0);
}

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