Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Okay, i have returned my pointer to

Status
Not open for further replies.

thebarslider

Programmer
Dec 21, 2001
80
GB
Okay, i have returned my pointer to a function pointer handler.

struct com {
char nm[COMMAX];
void (*handler)();
};

But what type do i set my function to, so it knows i am returning a function pointer?
 
"But what type do i set my function to, so it knows i am returning a function pointer?"

Here is a function that returns a pointer to function returning void...

void (*func())() {
//...
// ur code here
//...
}

Kindly go through faq205-924 (and give me a nice vote :-D). Ankan.

Please do correct me if I am wrong. s-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top