Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Return values [Table of Contents] Usage

Open Client Client-Library/C Reference Manual

[-] Chapter 3 Routines
[-] ct_con_drop
[-] Examples

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.


Return values [Table of Contents] Usage