Function ziAPIDestroy#

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


conn[in] Pointer to ZIConnection struct that has to be destroyed



  • Other return codes may also be returned, for a detailed error message use ziAPIGetLastError.