prev up next   top/contents search

comp.lang.c FAQ list · Question 1.17

Q: What does

typedef int (*funcptr)();
mean?


A: It defines a typedef, funcptr, for a pointer to a function (taking unspecified arguments) returning an int. It can be used to declare one or more pointers to functions:

	funcptr pf1, pf2;
which is equivalent to the more verbose, and perhaps harder to understand
	int (*pf1)(), (*pf2)();
See also questions 1.21, 4.12, and 15.11.

References: K&R1 Sec. 6.9 p. 141
K&R2 Sec. 6.7 p. 147


prev up next   contents search
about this FAQ list   about eskimo   search   feedback   copyright

Hosted by Eskimo North