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

ct_cmd_alloc [Table of Contents] ct_cmd_props

Open Client Client-Library/C Reference Manual

[-] Chapter 3 Routines
[-] ct_cmd_drop

ct_cmd_drop

Description

Deallocate a CS_COMMAND structure.

Syntax

CS_RETCODE ct_cmd_drop(cmd)
 
 CS_COMMAND     *cmd;

Parameters

cmd

A pointer to a CS_COMMAND structure.

Return values

ct_cmd_drop returns the following values:

Return value

Meaning

CS_SUCCEED

The routine completed successfully.

CS_FAIL

The routine failed.

CS_BUSY

An asynchronous operation is already pending for this connection. See "Asynchronous programming".

ct_cmd_drop returns CS_FAIL if:

Examples

Example 1

          if ((retcode = ct_cmd_drop(cmd)) != CS_SUCCEED)
           {
                ex_error("DoCompute: ct_cmd_drop() failed");
                return retcode;
           }

This code excerpt is from the compute.c example program.

Usage

See also

ct_command, ct_cmd_alloc


ct_cmd_alloc [Table of Contents] ct_cmd_props