Man page - libr_read(3)

Packages contas this manual

Manual

libr_read(3) Library Functions Manual libr_read(3)

libr_read - Read out the contents of a libr ELF resource.

#include <libr.h>

int libr_read(libr_file *handle, char *resourcename, char *buffer);

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.

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.

libr_open(3)

Erich Hoover ehoover@mines.edu

libr