Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!uflorida!reef.cis.ufl.edu!pm0 From: pm0@reef.cis.ufl.edu (Patrick Martin) Newsgroups: comp.lang.c Subject: More problems with passing functions as arguments. Message-ID: <27546@uflorida.cis.ufl.EDU> Date: 21 Mar 91 05:59:56 GMT Sender: news@uflorida.cis.ufl.EDU Organization: UF CIS Dept. Lines: 44 void Function(i) int i; { printf("\nThe Number Is: %d\n",i); } void Pass_Me_A_Function(F) void (*F) (int); { F(1); } main() { Pass_Me_A_Function(Function); } This code works fine when compiled with gcc or my compiler at home. When compiled with some of the older implementations of C it fails. Is there a way I can get this to run with some of the older versions of C? PS: It fails on the declaration of F in Pass_Me_A_Function of void (*F) (int); Thanks for the help, Pat