Tou
Tou header library
Loading...
Searching...
No Matches
Lower file operations

Data Structures

struct  tou_block_store_struct
 Struct containing buffer and count to be used in block-reading. More...
 

Functions

void * tou_block_store_cb (void *blockdata, void *len, void *userdata)
 Appends the given block to the buffer in tou_block_store_struct through realloc().
 

Detailed Description

Function Documentation

◆ tou_block_store_cb()

void * tou_block_store_cb ( void * blockdata,
void * len,
void * userdata )

Appends the given block to the buffer in tou_block_store_struct through realloc().

Memory for '\0' at the end will be allocated, but will not be indicated in .size parameter. This function is automatically passed to tou_read_fp_in_blocks by tou_read_file, but may also be used manually for any purpose.

Parameters
[in]blockdataPointer to the beginning of new data
[in]lenAmount of bytes actually read
[in]userdataUser data provided
Returns
Whether to continue with read iterations (tou_iter_action)