Man page - libr_read(3)
Packages contas this manual
Manual
| libr_read(3) | Library Functions Manual | libr_read(3) |
NAME
libr_read - Read out the contents of a libr ELF resource.
SYNOPSIS
#include <libr.h>
int libr_read(libr_file *handle, char *resourcename, char *buffer);
WARNING
This function does not allocate memory for the buffer, so the buffer must be large enough to fit the resource data. For this reason it is suggested that libr_malloc(3) be used in preference over this function.
DESCRIPTION
Reads the contents of a resource embedded in an ELF binary, the resource must be compatible with the libr specification.
Parameters
handle A handle returned by
libr_open(3).
Returns
Returns 1 on success, 0 on failure.
SEE ALSO
libr_open(3)
AUTHOR
Erich Hoover ehoover@mines.edu
| libr |