H
hansoft
Hi!
I write C based software that I try to keep as portable as possible.
Therefore I support both K&R and ANSI headers. In one of these
headers, there is a pointer to a function with arguments. In ANSI
that's easy, but how about K&R C? Is it:
int bla (int (*blabla) ()) {}
or
int bla (int (*blabla) (bar, foo)) {}
or:
int bla (int (*blabla) (int, int)) {}
or (unlikely):
int bla (int (*blabla) (int bar, int foo)) {}
Tnx!!
Hans
I write C based software that I try to keep as portable as possible.
Therefore I support both K&R and ANSI headers. In one of these
headers, there is a pointer to a function with arguments. In ANSI
that's easy, but how about K&R C? Is it:
int bla (int (*blabla) ()) {}
or
int bla (int (*blabla) (bar, foo)) {}
or:
int bla (int (*blabla) (int, int)) {}
or (unlikely):
int bla (int (*blabla) (int bar, int foo)) {}
Tnx!!
Hans