Function pointers.. help!

Jeff Bakke nebakke at ndsuvax.UUCP
Fri Oct 13 19:02:23 AEST 1989


I have recently been working with function pointers and I have a problem
that I need help with.

say I have a function pointer defined:
void (*border_proc)();  
Ok, now I want a function to be called as
Assign_border(myfunction);
Where myfunction is a function name.
Now the assign_border function
is declared as 
void Assign_border(void (*user_border)()){

  border_proc = user_border;
}

Now, to me, this seems alright, but to the  Turbo c 2.0 compiler, it
says that a Storage class is required.  Now, I've tried other variations
of the argument declaration but nothing I do works.  Someone out there
must know the correct way to do this, if you do, I'd appreciate your
help. 


Thanks.


Jeff bakke
nebakke at plains.NoDak.edu
nu113738 at ndsuvm1.bitnet



More information about the Comp.lang.c mailing list