DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home
Contents
Index
Master Index
New Book
mi_error_desc_copy()
The
mi_error_desc_copy()
function returns a copy of a given
MI_ERROR_DESC
structure.
Syntax
MI_ERROR_DESC *mi_error_desc_copy (
source
)
MI_ERROR_DESC *source;
source
is the error descriptor to copy.
Valid in Client Application?
Valid in Server Routine?
Yes
Yes
Usage
Memory for the copy is allocated using
mi_alloc()
and the current default memory duration.
Important: Be sure to destroy the
MI_ERROR_DESC
structure with
mi_error_desc_destroy()
when it is no longer needed.
Return Values
On success, returns the newly allocated copy of the given structure; on failure, returns
NULL
.
Related Topics
For additional information, see the descriptions of the following functions:
mi_errmsg()
,
mi_error_desc_destroy()
,
mi_error_desc_is_copy()
,
mi_error_level()
,
mi_error_sql_state()
, and
mi_error_sqlcode()
.
DataBlade API Programmer's Manual
, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.