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 example programs. 
 **
 **
 */
 
 #define USER              "user"
 #define PASSWORD          "server_password"
 #define LANGUAGE          "us_english"
 #define SQLBUFLEN         255
 #define ERR_CH            stderr
 #define OUT_CH            stdout
 extern void               error();
 extern int                err_handler();
 extern int                msg_handler();

All of the samples except Example 5 contain these lines:

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

Following are descriptions of edits for the lines in sybdbex.h: