informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_error_desc_destroy()

The mi_error_desc_destroy() function frees an error descriptor that mi_error_desc_copy() allocated.

Syntax

Usage

The mi_error_desc_destroy() function is a destructor function for the error descriptor. It frees the error descriptor that err_desc references. The mi_error_desc_copy() function must previously have allocated the err_desc error descriptor. This function can fail if either of the following error conditions exists:

Use the mi_error_desc_is_copy() function to determine how the err_desc structure was allocated.

Return Values

MI_OK indicates that the function was successful.
MI_ERROR indicates that the function was not successful.

Related Topics

See the descriptions of the following functions: mi_errmsg(), mi_error_desc_copy(), mi_error_desc_is_copy(), mi_error_level(), mi_error_sql_state(), and mi_error_sqlcode().

For a general discussion of how to copy error descriptors, see Creating a Copy of an Error Descriptor.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved