Back to index

cell-binutils  2.17cvs20070401
dll.c
Go to the documentation of this file.
00001 int var = 123;
00002 int foo = 121;
00003 
00004 int var2[2]= { 123, 456 };
00005 
00006 #include <stdio.h>
00007 
00008 void
00009 print_var (void)
00010 {
00011   printf ("DLL sees var = %d\n", var);
00012 }
00013 
00014 void
00015 print_foo (void)
00016 {
00017   printf ("DLL sees foo = %d\n", foo);
00018 }
00019 
00020 void (* func_ptr)(void) = print_foo;