Man page - libr_list(3)
Packages contas this manual
Manual
| libr_list(3) | Library Functions Manual | libr_list(3) |
NAME
libr_list - Obtain the name of a libr ELF resource (by index).
SYNOPSIS
#include <libr.h>
char *libr_list(libr_file *file_handle, unsigned int resourceid);
DESCRIPTION
Returns the name of a libr-compatible resource stored in an ELF binary corresponding to the given resource index. The index value ranges from 0 to the value returned by libr_resources(3), which returns the total number of libr-compatible resources stored in the ELF binary.
Parameters
handle A handle returned by libr_open(3).
resourceid The index of the libr-compatible resource for which the name will be returned.
resourceid The index of the libr-compatible resource for which the name will be returned.
Returns
Returns a string containing the name of the resource
section. This string is allocated when the function is called, so it must
be unallocated with a call to free(3) when it is no-longer needed.
NULL is returned on failure.
SEE ALSO
libr_open(3), free(3)
AUTHOR
Erich Hoover ehoover@mines.edu
| libr |