How do I define a typedef struct in function f1() and pass a pointer to function f2() without a global definition of the struct. For instance:

Also I would like this to be in C but not in C++.

I have no toolbar, so I cannot put the code I had planned. Help with the toobar with getting the edit button would also be great.

I have no toolbar,

You mean you don't see the purple ribbon just above the editor? If not then post in DaniWeb Community Feedback so that someone can help you with that problem.

I would like this to be in C but not in C++.

Why did you post this in the c++ forum instead of the C forum??

How do I define a typedef struct in function f1() and pass a pointer to function f2() without a global definition of the struct.

You don't. The typedef will be local to only the function in which it appears. Other functions can't see it which is why it needs to be global.