| Main index | Section 3 | Options |
#include <libelf.h>
The return value of elf_next() is suitable for use in a loop invoking elf_begin().
Elf_Cmd cmd;
Elf *archive, *e;
amp;...
cmd = ELF_C_READ;
archive = elf_begin(fd, cmd, NULL);
while ((e = elf_begin(fd, cmd, archive)) != (Elf *) 0)
{
... process `e' here ...
cmd = elf_next(e);
elf_end(e);
}
elf_end(archive);
| [ELF_E_ARGUMENT] | |
| Argument elf was not associated with a containing ar(1) archive. | |
| [ELF_E_ARGUMENT] | |
| An error was encountered while parsing the archive containing argument elf. | |
| ELF_NEXT (3) | February 27, 2019 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | VI = Virtually Incomprehensible. | ” |