Re: Reference to struct

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 06/06/01


"Patrick M. O'Laughlin" wrote:
>
> const struct test_struct {
>   int test;
>   int test2;
> } the_test[] = {
>  { 1, 2 }, { 2, 3 }
> };
>
> If the above was defined in one file, how would I reference and access
> the_test in another file?

extern const struct test_struct the_test;

Regards, Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST