I'm working on a program right now that requires me to create a few structures and functions, and the functions must call the structures I've created. When I compile my program, I get various scope errors. My structs are defined in my main() routine. Do I have to move the structs outside of the main() routine to stop getting these scope errors, or can I just use:

Code:
typedef struct name
   {
   variables
   };
in my main() routine?

Thanks for reading.