How to use a defined struct from another source file?
Posted
by sasayins
on Stack Overflow
See other posts from Stack Overflow
or by sasayins
Published on 2010-06-15T00:14:48Z
Indexed on
2010/06/15
0:22 UTC
Read the original article
Hit count: 487
Hi,
I am using Linux as my programming platform and C language as my programming language.
My problem is, I define a structure in my main source file( main.c):
struct test_st
{
int state;
int status;
};
So I want this structure to use in my other source file(e.g. othersrc.). Is it possible to use this structure in another source file without putting this structure in a header?
Thanks
© Stack Overflow or respective owner