Man page - libr_read(3)

Packages contains this manual

Manual

libr_read

NAME
SYNOPSIS
WARNING
DESCRIPTION
SEE ALSO
AUTHOR

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