Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!xanth!byrum From: byrum@cs.odu.edu (Terry Franklin Byrum) Newsgroups: comp.lang.c Subject: Prototype for Functions pointers in Structures Message-ID: <8400@xanth.cs.odu.edu> Date: 10 Apr 89 14:51:28 GMT Distribution: na Organization: Old Dominion University, Norfolk, Va. Lines: 34 Here is a question for all you pANS gurus. How do you define a prototype for a pointer to a function contained within a structure? e.g. struct _fns{ int foo; int (*fnsptr)(); }fns; My guess is: int (*fns.fnsptr)(void); but MSC 5.1 gags ... Thanks, Frank Frank Byrum, BROOKS Financial Systems, Suffolk VA, (804)539-7202 1st Law of SE INET:byrum@cs.odu.edu UUCP:..!sun!xanth!{byrum,brooks!frank} Semper Sic Factum -- Inventions have long since reached their limit -- and I see no hope for further developments. - Julius Frontinus, world famous engineer, Rome, 10 AD First Law of Software Eng: | Terry Franklin (Frank) Byrum Semper Sic Factum | BROOKS Financial Systems, Inc. ___ | INET: byrum@cs.odu.edu /__ _. __. _ _ /_ | UUCP: ...!sun!xanth!brooks!frank / _/ \_(_/|_|\|_/ \ | DISCLAIMER: No one listens anyway!