#include <stdio.h>   // printf
#include <stdlib.h>  // EXIT_SUCCESS

// A global variable, defined and initialized here in foo.c.
// By including the "static" storage class specifier, we are
// telling the compiler that "counter" should use internal
// linkage: this means that other modules cannot "see" our
// counter variable.
static int counter = 1;

int main(int argc, char** argv) {
  printf("(main): pre-Bar, counter is %d\n", counter);
  Bar();
  printf("(main): post-Bar, counter is %d\n", counter);
  return EXIT_SUCCESS;
}