File: get-sym.c

package info (click to toggle)
fudgit 2.42-6
  • links: PTS
  • area: non-free
  • in suites: potato, woody
  • size: 2,468 kB
  • ctags: 2,375
  • sloc: ansic: 27,729; makefile: 793; yacc: 724; lex: 102; asm: 29; fortran: 15
file content (15 lines) | stat: -rw-r--r-- 293 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* print the address and value of the specified symbols */

get_symbol (argc, argv)
int argc;
char *argv[];
{
	register int *value;
	register int i;

	for (i=1; i < argc; i++) {
	value = (int *) dld_get_symbol (argv[i]);
	printf ("%d: address = 0x%x, value = 0x%x\n", i, value, *value);
	}
}