Prototype for Functions pointers in Structures

Andrew Koenig ark at alice.UUCP
Tue Apr 11 07:09:12 AEST 1989


In article <8400 at xanth.cs.odu.edu>, byrum at cs.odu.edu (Terry Franklin Byrum) writes:

> 		struct fns{
> 			int foo;
> 			int (*fnsptr)();
> 		}fns;
> 

How about this:

		struct fns {
			int foo;
			int (*fnsptr)(void);
		} fns;
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.lang.c mailing list