cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/30/03:22:54

From: s2736173 AT techst02 DOT technion DOT ac DOT il (Ohad Somjen)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ...
Date: Sat, 26 Jul 1997 09:26:40 GMT
Organization: NetVision LTD.
Lines: 13
Message-ID: <33e1c2cf.7983444@news.netvision.net.il>
References: <970721172104_818627977 AT emout11 DOT mail DOT aol DOT com>
NNTP-Posting-Host: ts000p7.pop8a.netvision.net.il
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Mon, 21 Jul 1997 21:21:24 GMT, NoHero69 AT aol DOT com wrote:

>One quick question.  If I have a pointer that points a function, what is the
>syntax of calling the procedure via the pointer?  Is it a simple CALL
><whatever> in ASM, and is there a way to do it outside the bounds of ASM?

if you define the following:
void (*f_ptr)(char*);		//pointer to function that returns
				//void and gets char*
then in order to use it:
f_ptr=&some_char_function;
(*f_ptr)("bla bla bla);

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019