Man page - libr_size(3)

Packages contas this manual

Manual

libr_size(3) Library Functions Manual libr_size(3)

libr_size - Returns the uncompressed size of a libr resource.

#include <libr.h>

int libr_size(libr_file *handle, char *resourcename, size_t *size);

Obtain the total number of bytes consumed by the uncompressed version of the specific libr-resource. Intended to be used with libr_read(3) in order to allocate a large enough buffer for the resource.

Parameters

handle A handle returned by libr_open(3).
resourcename The name of the resource for which the size of the data section will be returned.
size A pointer for storing the size of the data section. This pointer cannot be NULL.

Returns

Returns 1 on success, 0 on failure.

libr_open(3), libr_read(3)

Erich Hoover ehoover@mines.edu

libr