home *** CD-ROM | disk | FTP | other *** search
- /* INTRO24.C - Beispiel aus Kapitel 4 der
- Einführung */
-
- #include <stdio.h>
- #include <conio.h>
-
- void tally(void);
-
- int main()
- {
- while (getch() != 'q')
- tally();
-
- return 0;
- }
-
- void tally(void)
- {
- static int called = 0;
- called++;
- printf("%d. Aufruf von tally()\n", called);
- }
-