Last change
on this file since 269 was 269, checked in by bird, 22 years ago |
Early coding
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
368 bytes
|
Line | |
---|
1 | static int fileglobal = 2;
|
---|
2 | int realglobal = 1;
|
---|
3 |
|
---|
4 | int foo(int i, int j)
|
---|
5 | {
|
---|
6 | static int myVar = 0;
|
---|
7 | static int myVar2;
|
---|
8 |
|
---|
9 | if (myVar++)
|
---|
10 | {
|
---|
11 | int scope;
|
---|
12 |
|
---|
13 | return scope + myVar + myVar2;
|
---|
14 | }
|
---|
15 | myVar2++;
|
---|
16 | return 0;
|
---|
17 | }
|
---|
18 |
|
---|
19 | static int bar(int i, int j)
|
---|
20 | {
|
---|
21 | return i+j;
|
---|
22 | }
|
---|
23 |
|
---|
24 |
|
---|
25 | void main(int argc, char **argv)
|
---|
26 | {
|
---|
27 | foo(1, 2);
|
---|
28 | bar(1, 2);
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.