ldgetname(3x) ldgetname(3x)
Name
ldgetname - retrieve symbol name for object file symbol table entry
Syntax
#include <stdio.h>
#include <filehdr.h>
#include <sym.h>
#include <ldfcn.h>
char *ldgetname (ldptr, symbol)
LDFILE * ldptr ;
pSYMR * symbol ;
Description
The function returns a pointer to the name associated with symbol as a string. The string is contained in a static buffer. Because the
buffer can be overwritten by later calls to the caller must copy the buffer if the name is to be saved.
If the name cannot be retrieved, returns null (defined in <stdio.h>) for an object file. This occurs in the following instances:
o The string table cannot be found
o The name's offset into the string table is beyond the end of the string table
Typically, is called immediately after a successful call to retrieves the name associated with the symbol table entry filled by the func-
tion,
See Also
intro(3x), ldclose(3x), ldopen(3x), ldtbseek(3x), ldtbread(3x), ldfcn(5).
RISC ldgetname(3x)