| ELF_STRPTR(3) | Library Functions Manual | ELF_STRPTR(3) |
elf_strptr —
#include <libelf.h>
char *
elf_strptr(Elf
*elf, size_t scndx,
size_t stroffset);
elf_strptr() allows an application to convert a
string table offset to a string pointer, correctly translating the offset in
the presence of multiple Elf_Data descriptors covering
the contents of the section.
Argument elf is a descriptor for an ELF object. Argument scndx is the section index for an ELF string table. Argument stroffset is the index of the desired string in the string table.
elf_strptr() returns a valid pointer on success
or NULL in case an error was encountered.
ELF_E_ARGUMENT]ELF_E_ARGUMENT]ELF_E_ARGUMENT]ELF_E_ARGUMENT]ELF_E_ARGUMENT]ELF_E_DATA]ELF_E_DATA]ELF_E_HEADER]ELF_E_RESOURCE]ELF_E_SECTION]ELF_E_SECTION]| December 16, 2006 | NetBSD 9.2 |