Home | Previous Page | Next Page   Function Descriptions >

mi_lo_stat_free( )

The mi_lo_stat_free( ) function frees an LO-status structure.

Syntax

mi_integer mi_lo_stat_free(conn, LO_stat)
   MI_CONNECTION *conn;
   MI_LO_STAT *LO_stat;
conn
is one of the following connection values:

A pointer to a connection descriptor established by a previous call to mi_lo_open( ), mi_server_connect( ), or mi_server_reconnect( )

A NULL-valued pointer (database server only)

LO_stat
is a pointer to an LO-status structure that mi_lo_stat_free( ) deallocates.
Valid in Client LIBMI Application? Valid in User-Defined Routine?
Yes Yes

Usage

The mi_lo_stat_free( ) function frees the LO-status structure that LO_stat references. This function is the destructor for the LO-status structure.

Important:
Do not use system memory-allocation calls (such as free( ) or mi_free( )) to perform memory management for LO-status structures.

When your application no longer needs status information, call mi_lo_stat_free( ) for each LO-status structure that the mi_lo_stat( ) function has allocated. Once freed, these resources can be reallocated to other structures.

Warning:
Do not call the mi_lo_stat_free( ) function for the same LO-status structure more than once. This behavior is analogous to the behavior of the free( ) system function for regular memory allocation.
Server Only

The mi_lo_stat_free( ) function does not need a connection descriptor to execute. If your UDR does not need a valid connection for other operations, you can specify a NULL-valued pointer for the conn parameter to establish a NULL connection. For information on the advantages of a NULL connection, see the IBM Informix: DataBlade API Programmer's Guide.

End of Server Only

Return Values

MI_OK
indicates that the function was successful.
MI_ERROR
indicates that the function was not successful. One of the arguments is invalid.

Related Topics

See also the descriptions of mi_lo_stat( ), mi_lo_stat_atime( ), mi_lo_stat_cspec( ), mi_lo_stat_ctime( ), mi_lo_stat_mtime_sec( ), mi_lo_stat_mtime_usec( ), mi_lo_stat_refcnt( ), and mi_lo_stat_size( ).

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]