use typedef from another file - C
I want to use a typedef defined in another file, but not sure how to do this; would also like to do the same thing for enums. How do I go about doing this?
main.c Code:
void main(){ Code:
struct dat{ |
Assuming you're using C/C++, it sounds like a job for a header file, e.g.
Code:
#include "my_defs.h" |
Thanks, helped point me in the right direction. Very useful thing to know.
|
All times are GMT -5. The time now is 03:11 AM. |