Path: utzoo!attcan!uunet!mcsun!ukc!edcastle!aighb From: aighb@castle.ed.ac.uk (Geoffrey Ballinger) Newsgroups: comp.lang.c Subject: "dummy" functions. Message-ID: <7126@castle.ed.ac.uk> Date: 12 Nov 90 13:22:26 GMT Organization: Edinburgh University Computing Service Lines: 16 In a program I am writing I have several versions of a particular function and I intend to allow the user to select which is used at run time. To do this I aim to have a "dummy" function which I will set "equal" to the appropriate function when the user makes his choice. The rest of my program will then call this "dummy" function - and hence the correct "real" function - whenever necessary. How do I declare and assign to this dummy function? I am using the cc compiler under Sun-OS 4.1. Thanks, Geoff. -- Geoff Ballinger, JANET: Geoff@Uk.Ac.Ed Department of Artificial Intelligence, UUCP: ...!mcsun!ukc!Ed.Ac.Uk!Geoff Edinburgh University.