TIP: Click on subject to list as thread! ANSI
echo: cis.os9.6809.coco
to: all
from: Joseph Cheek 71431,3466
date: 1992-03-30 19:43:31
subject: #c on the coco

#: 14726 S10/OS9/6809 (CoCo)
    30-Mar-92  19:43:31
Sb: #c on the coco
Fm: Joseph Cheek 71431,3466
To: all

C programmers, I have a question:

  How do you pass a function address to another function and have the second
function execute it?  Example:

  I have a function foo()

int foo()

{
  ... }

  that I want to have another function dofunc() execute.  I call dofunc() in
some manner like

  dofunc(foo);

  so that dofunc() executes foo().  How do I code this?  Your help is
appreciated.

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.