Line | |
---|
1 | #include <stdio.h> |
---|
2 | void codes_(void) |
---|
3 | { |
---|
4 | /* type Molecules */ |
---|
5 | struct molecules |
---|
6 | { |
---|
7 | char name[10]; |
---|
8 | int mcode; |
---|
9 | int n1[4]; |
---|
10 | }; |
---|
11 | /* type (Molecules) ListofMol */ |
---|
12 | /* common /Reg9/ ListofMol */ |
---|
13 | extern struct reg9 { struct molecules listofmol;}; extern struct reg9 reg9_; |
---|
14 | printf("molcodes: mon nom est <%10s>\n",reg9_.listofmol.name); |
---|
15 | printf("molcodes: mon code est %d\n",reg9_.listofmol.mcode); |
---|
16 | printf("molcodes: mon N1(1) est %d\n",reg9_.listofmol.n1[0]); |
---|
17 | printf("molcodes: mon N1(4) est %d\n",reg9_.listofmol.n1[3]); |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.