Listing 2. example.i

 /* example.i */
     %module example
     %
     /* Put header files here (optional) */
     %
     extern double My_variable;
     extern int fact(int n);
     extern int my_mod(int x, int y);
     extern char *get_time();