| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Function Pointers |
Hi Neil. 19-Apr-04 11:57:00, Neil Heller wrote to Darin McBride NH> That brings up another point. How do you create a function NH> pointer that returns something other than that which was NH> passed-in? For example, if GetEmployee() above were to return a NH> pointer to double and SaveEmployee() were to return a pointer to a NH> structure of type struct foo? double *(*getemployee)(struct emprecord *); struct foo *(*savemployee)(struct emprecord *); In general a function pointer is delcared like a function except the name part is parenthesuzed and preceeded by a * -=> Bye <=- --- (3:640/1042)* Origin: You think "I'm no fool!" but I am! - Spike Milligan SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 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™.