ELF_GETSHNUM(3) | Library Functions Manual | ELF_GETSHNUM(3) |
elf_getshnum
—
#include <libelf.h>
int
elf_getshnum
(Elf
*elf, size_t
*shnum);
Function elf_getshnum
() retrieves the
number of ELF sections associated with descriptor elf
and stores it into the location pointed to by argument
shnum.
This routine allows applications to uniformly process both normal ELF objects, and ELF objects that use extended section numbering.
elf_getshnum
() returns a non-zero value if
successful, or zero in case of an error.
elf_getshnum
() can fail with the following
errors:
ELF_E_ARGUMENT
]ELF_E_ARGUMENT
]ELF_E_ARGUMENT
]August 5, 2009 | NetBSD 9.2 |