Adelsbach/VSIPL
Core Light Double Precision Programming Reference Guide
DD-00014-015
Core Light +DP

5.11 vsip_dblockdestroy_p - Destroy a block

void vsip_blockdestroy_f(vsip_block_f *b); 
void vsip_blockdestroy_d(vsip_block_d *b); 
void vsip_blockdestroy_i(vsip_block_i *b); 
void vsip_cblockdestroy_f(vsip_cblock_f *b); 
void vsip_cblockdestroy_d(vsip_cblock_d *b);
Description

These functions destroy the block specified by the pointer b. Destroying a block involves deallocating the memory associated with it and performing any necessary cleanup operations. After calling one of these functions, the block pointer b becomes invalid and should not be used further.

Parameters
Return Value

These functions do not return a value.

Example

vsip_block_f *block = vsip_blockcreate_f(10, VSIP_MEM_NONE); 
// Use the block... 
vsip_blockdestroy_f(block); // Destroy the block when done
Notes

Ensure that the block pointer is valid and has been properly initialized before calling these functions. Attempting to destroy an already destroyed block or an invalid pointer may result in undefined behavior.