Systemnahe Programmierung in C: Im- und Export von Indentifikatoren |
1#define PI 3.141
2
3extern double pi = PI;
4extern double pia[4] = { PI / 2, PI / 4, PI / 8, PI / 16 };
5
6extern double
7sin (double x)
8{
9 double res;
10
11 /* ... */
12
13 return res;
14}
15
16extern double
17cos (double x)
18{
19 double res;
20
21 /* ... */
22
23 return res;
24}
|
1extern double pi;
2
3extern double sin (double);
4
5double
6tan (double x)
7{
8 extern double cos (double);
9 extern double pia[];
10
11 return sin (x) / cos (x);
12}
|
1void
2f0 (void)
3{
4 extern int f1 (void);
5}
6
7
8void
9f2 (void)
10{
11 extern double f1 (void);
12}
|
Letzte Änderung: 11.01.2007 | © Prof. Dr. Uwe Schmidt |