Function ziAPIDestroy#
Defined in File ziAPI.h
-
ZIResult_enum ziAPIDestroy(ZIConnection conn)#
Destroys a ZIConnection structure.
This function frees all memory that has been allocated by ziAPIInit. If it is called with an uninitialized ZIConnection struct it may result in segmentation faults as well when it is called with a struct for which ZIAPIDestroy already has been called.
See Connection for an example
See also
- Parameters:
conn – [in] Pointer to ZIConnection struct that has to be destroyed
- Returns:
ZI_INFO_SUCCESS
Other return codes may also be returned, for a detailed error message use ziAPIGetLastError.