TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: ROGER SCUDDER
from: DARIN MCBRIDE
date: 1998-03-12 07:50:00
subject: Type detection

 RS>  If I pass a pointer to struct to a function and that struct contains
 RS>  a member that is a void pointer and could be pointing to any data
 RS>  type, is there a way to have the function determine the type that
 RS>  the void pointer is pointing to?
Nope.  Keep a member of the struct which tells you.  Perhaps an enum.
 RS>  Pheeeew.... That was a mouthful :-)  I hope that's not too hard to
 RS>  follow.
Nope - done all the time.  :-)
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)

SOURCE: echomail via exec-pc

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™.