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.

Returns

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 sample program.

Usage

See also

ct_command, ct_cmd_alloc