home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
octave-1.1.1p1-src.tgz
/
tar.out
/
fsf
/
octave
/
dld
/
test
/
general
/
test-define.c
< prev
Wrap
C/C++ Source or Header
|
1996-09-28
|
295b
|
18 lines
#include <dld.h>
#include <a.out.h>
test_define ()
{
int *i;
dld_link ("print_global.o");
dld_define_sym ("global_int", sizeof(int));
i = (int *) dld_get_symbol ("global_int");
*i = 12345;
printf ("print_global should now give 12345\n");
}