Adelsbach/VSIPL
Core Light Programming Reference Guide
DD-00014-015
Core Light

5.7 vsip_blockfind_p - Get user data

vsip_scalar_f* vsip_blockfind_f(const vsip_block_f *p); 
vsip_scalar_i* vsip_blockfind_i(const vsip_block_i *p);
Description

These functions return a pointer to the user data array bound to the given block p. The block must have been bound previously and must be in the released state before calling these functions.

Parameters
Return Value
Error Handling

If an error occurs, the function returns NULL.

Example

vsip_block_f *float_block; 
vsip_scalar_f *float_data; 
 
// Assuming float_block has been properly initialized, bound, and released 
float_data = vsip_blockfind_f(float_block); 
 
if (float_data == NULL) { 
    // Handle error 
}