TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: NEIL HELLER
from: JOHN GUILLORY
date: 2004-04-29 00:13:42
subject: Function Pointer Redux

-> Given the following line of code:

-> typedef void * (*x) (void *)

-> What does this statement declare?

-> What is x?
   I'm not an expert on C, but it appears like

X is a pointer to a function that returns (I think a generic pointer)
and takes on a generic pointer (void *).... In other words


void *MyProc(void arg1*) 
{
  return(arg1);
}

   The have X point to MyProc....
--- Platinum Xpress/Win/Wildcat5! v3.0pr3
* Origin: MLC-Group BBS -- mlc-group.dyndns.org (1:396/60)
SEEN-BY: 633/267 270
@PATH: 396/60 45 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.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™.