sybdbex.h header file

All the sample programs reference the example header file, sybdbex.h. The contents of sybdbex.h are:

/*
 ** sybdbex.h
 **
 ** This is the header file that goes with the 
 ** Sybase DB-Library sample programs. 
 **
 **
 */
 
 #define USER             "sa"
 #define PASSWORD         ""
 #define LANGUAGE         "us_english"
 #define SQLBUFLEN        255
 #define ERR_CH           stderr
 #define OUT_CH           stdout
extern void            error();

int CS_PUBLIC err_handler PROTOTYPE((
DBPROCESS   *dbproc,
int         severity, 
int         dberr, 
int         oserr, 
char       *dberrstr,
char       *oserrstr));

int CS_PUBLIC msg_handler PROTOTYPE((
DBPROCESS   *dbproc, 
DBINT       msgno, 
int         msgstate, 
int         severity, 
char        *msgtext, 
char        *srvname, 
char        *procname, 
int          line));

All the sample programs except the data conversion sample program contain these lines:

DBSETLUSER(login, USER);
DBSETLPWD(login, PASSWORD);

Make these changes to the USER, PASSWORD, and LANGUAGE variables: