From: "Franz Raps" Newsgroups: comp.os.msdos.djgpp Subject: Re: Pointers to functions. Date: Sun, 28 Feb 1999 22:26:23 +0100 Organization: Fachhochschule Augsburg, Germany Lines: 26 Message-ID: <7bcc8i$ecc$1@av2.rz.fh-augsburg.de> References: <7b9jku$o7o$1 AT news6 DOT svr DOT pol DOT co DOT uk> NNTP-Posting-Host: dial17-119.rz.fh-augsburg.de X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm in the process of writing a (very primitive) scrolling shoot-em-up like space invaders, and in designing the core of the sprite moving program, I have chosen to have every object call it's update function each frame. All the objects share a common data type, so I wanted to use function pointers. The problem is, I've never uesd them before. Just wanted to know how to prototype them (if any changes are needed) and how to specify them in my object_t structure. I'd also appreciate any help in how I'm supposed to assign functions to the pointers, and how to call those functions. Have a look at The C programming Language Second Edition Kernighan and Ritchie Chapter 5.11 Pointers and Functions In the german edition it is page 115. I hope it helps F. Raps