xt_ff_set_buff_size(3)

LIBRARY
#include <xtend/fast-file.h>
-lxtend

SYNOPSIS
int     xt_ff_set_buff_size(xt_ff_t *xt_ff_ptr, ssize_t new_buff_size)

ARGUMENTS
xt_ff_ptr    Pointer to the structure to set
new_buff_size   The new value for buff_size

DESCRIPTION
Mutator for buff_size member in a xt_ff_t structure. Use this function to set buff_size in a xt_ff_t object from non-member functions. This function performs a direct assignment for scalar or pointer structure members. If buff_size is a pointer, data previously pointed to should be freed before calling this function to avoid memory leaks.

RETURN VALUES
EXTEND_DATA_OK if the new value is acceptable and assigned EXTEND_DATA_OUT_OF_RANGE otherwise

EXAMPLES
xt_ff_t      xt_ffile;
ssize_t         new_buff_size;
if ( xt_ff_set_buff_size(&xt_ffile, new_buff_size)
        == EXTEND_DATA_OK )
{
}

SEE ALSO
(3)