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

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define BYTE_AT(n)   (((n) * 245 + 123) & 0xff)
 

Functions

static int to_sqlwchar (SQLWCHAR *dst, const char *src, int n)
 
static void Test (int direct)
 
int main (int argc, char *argv[])
 

Variables

static const char test_text []
 
static char sql [1024]
 

Macro Definition Documentation

◆ BYTE_AT

#define BYTE_AT (   n)    (((n) * 245 + 123) & 0xff)

Definition at line 10 of file putdata.c.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 231 of file putdata.c.

References odbc_connect(), odbc_disconnect(), and Test().

◆ Test()

static void Test ( int  direct)
static

◆ to_sqlwchar()

static int to_sqlwchar ( SQLWCHAR dst,
const char *  src,
int  n 
)
static

Definition at line 13 of file putdata.c.

References i, and n.

Referenced by Test().

Variable Documentation

◆ sql

char sql[1024]
static

Definition at line 21 of file putdata.c.

Referenced by Test().

◆ test_text

const char test_text[]
static
Initial value:
=
"Nel mezzo del cammin di nostra vita\n" "mi ritrovai per una selva oscura\n" "che' la diritta via era smarrita."

Definition at line 7 of file putdata.c.

Referenced by Test().

Modified on Fri Sep 20 14:57:28 2024 by modify_doxy.py rev. 669887