N
nathan
Hey there!
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 foo (int (*bar) ()) {}
or
int foo (int (*bar) (x, y)) {}
or:
int foo (int (*bar) (int, int)) {}
or (unlikely):
int foo (int (*bar) (int x, int y)) {}
Tnx!!
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 foo (int (*bar) ()) {}
or
int foo (int (*bar) (x, y)) {}
or:
int foo (int (*bar) (int, int)) {}
or (unlikely):
int foo (int (*bar) (int x, int y)) {}
Tnx!!