![]() | ![]() |
Home |
|
|
Open Client Client-Library/C Reference Manual |
|
| Chapter 3 Routines |
|
| ct_con_drop |
|
| Examples |
Example 1
/* ex_con_cleanup() */
CS_RETCODE CS_PUBLIC
ex_con_cleanup(connection, status)
CS_CONNECTION *connection;
CS_RETCODE status;
{CS_RETCODE retcode;
CS_INT close_option;
/* Close connection */
...CODE DELETED.....
retcode = ct_con_drop(connection);
if (retcode != CS_SUCCEED)
{ ex_error("ex_con_cleanup: ct_con_drop()failed");
return retcode;
}
return retcode;
}
This code excerpt is from the exutils.c example program.
|
|