NCBI C++ ToolKit
Functions | Variables
long_binary.c File Reference
#include <config.h>
#include <stdio.h>
#include <ctpublic.h>
#include "common.h"
#include <freetds/test_assert.h>
+ Include dependency graph for long_binary.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

static CS_RETCODE csmsg_callback (CS_CONTEXT *ctx, CS_CLIENTMSG *emsgp)
 
static void check_ret (const char *name, CS_RETCODE ret)
 
static int fetch_results (CS_COMMAND *command)
 
static int execute_sql (CS_COMMAND *command, const char *sql)
 
int main (int argc, char **argv)
 

Variables

static const CS_INT unused = CS_UNUSED
 
static const CS_INT nullterm = CS_NULLTERM
 
static CS_INT result_len = -1
 

Function Documentation

◆ check_ret()

static void check_ret ( const char *  name,
CS_RETCODE  ret 
)
static

Definition at line 31 of file long_binary.c.

References CS_SUCCEED, and exit().

Referenced by execute_sql(), fetch_results(), and main().

◆ csmsg_callback()

static CS_RETCODE csmsg_callback ( CS_CONTEXT ctx,
CS_CLIENTMSG emsgp 
)
static

Definition at line 24 of file long_binary.c.

References CS_SUCCEED, and _cs_clientmsg::msgstring.

Referenced by main().

◆ execute_sql()

static int execute_sql ( CS_COMMAND command,
const char *  sql 
)
static

Definition at line 67 of file long_binary.c.

References check_ret(), command, CS_LANG_CMD, ct_command(), ct_send(), fetch_results(), nullterm, sql, and unused.

Referenced by main().

◆ fetch_results()

static int fetch_results ( CS_COMMAND command)
static

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ nullterm

const CS_INT nullterm = CS_NULLTERM
static

Definition at line 20 of file long_binary.c.

Referenced by execute_sql(), and main().

◆ result_len

CS_INT result_len = -1
static

◆ unused

const CS_INT unused = CS_UNUSED
static
Modified on Wed Sep 04 15:03:40 2024 by modify_doxy.py rev. 669887