7

I have a C file generated with f2c (Fortran to C translator) that contains the following C structure:

struct {
    real rez, pi, st;
} const_;

How can I declare this const_ variable as an external in another .c file without modifying the one generated by f2c?

dpq
  • 9,028
  • 10
  • 49
  • 69

1 Answers1

6

In another file.

extern struct {
    real rez, pi, st;
} const_;
Svisstack
  • 16,203
  • 6
  • 66
  • 100