Listing 9

main()
{
   test();
   printf("test() called, testcalled = %d\n", testcalled);
   test();
   printf("test() called, testcalled = %d\n", testcalled);
   exit(0);
}
static test()
{
   testcalled++;
}