Header file

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

/*
 ** 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 of the samples except Example 5 contain these lines:

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

Following are descriptions of the changes you can make for the lines in sybdbex.h: