1NLIST(3)                   Library Functions Manual                   NLIST(3)
2
3
4

NAME

6       nlist - get entries from name list
7

SYNOPSIS

9       #include <a.out.h>
10       nlist(filename, nl)
11       char *filename;
12       struct nlist nl[ ];
13

DESCRIPTION

15       Nlist  examines  the  name list in the given executable output file and
16       selectively extracts a list of values.  The name list  consists  of  an
17       array  of  structures  containing names, types and values.  The list is
18       terminated with a null name.  Each name is looked up in the  name  list
19       of  the file.  If the name is found, the type and value of the name are
20       inserted in the next two fields.   If  the  name  is  not  found,  both
21       entries are set to 0.  See a.out(5) for the structure declaration.
22
23       This  subroutine  is  useful for examining the system name list kept in
24       the file /unix.  In this way programs can obtain system addresses  that
25       are up to date.
26

SEE ALSO

28       a.out(5)
29

DIAGNOSTICS

31       All  type  entries are set to 0 if the file cannot be found or if it is
32       not a valid namelist.
33
34
35
36                                                                      NLIST(3)
Impressum