File: list-undefined.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 (18 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* print out all the undefined symbols */

#include <dld.h>

list_undefined () {
	char **list = dld_list_undefined_sym ();

	if (list) {
	register int i;

	printf ("There are a total of %d undefined symbols:\n",
		dld_undefined_sym_count);
	for (i = 0; i < dld_undefined_sym_count; i++)
		printf ("%d: %s\n", i+1, list[i]);
	} else
	printf ("No undefined symbols\n");
}