Man page - libr_size(3)

Packages contains this manual

Manual

libr_size

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
AUTHOR

NAME

libr_size - Returns the uncompressed size of a libr resource.

SYNOPSIS

#include < libr.h >

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

DESCRIPTION

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.

SEE ALSO

libr_open (3), libr_read (3)

AUTHOR

Erich Hoover ehoover@mines.edu