4 * Description: See "misc.c"
6 * Comments: See "notice.txt" for copyright and license information.
19 #define SQLGetPrivateProfileString(a,b,c,d,e,f) GetPrivateProfileString(a,b,c,d,e,f)
24 /* Uncomment MY_LOG define to compile in the mylog() statements.
25 Then, debug logging will occur if 'Debug' is set to 1 in the ODBCINST.INI
26 portion of the registry. You may have to manually add this key.
27 This logfile is intended for development use, not for an end user!
32 /* Uncomment Q_LOG to compile in the qlog() statements (Communications log, i.e. CommLog).
33 This logfile contains serious log statements that are intended for an
34 end user to be able to read and understand. It is controlled by the
35 'CommLog' flag in the ODBCINST.INI portion of the registry (see above),
36 which is manipulated on the setup/connection dialog boxes.
43 #define MYLOGFILE "/tmp/mylog.log"
45 #define MYLOGFILE "c:\\mylog.log"
47 void mylog(); /* prototype */
49 #define mylog // mylog
54 #define QLOGFILE "/tmp/psqlodbc.log"
56 #define QLOGFILE "c:\\psqlodbc.log"
58 void qlog(); /* prototype */
63 void remove_newlines(char *string);
64 char *strncpy_null(char *dst, const char *src, int len);
65 char *trim(char *string);
66 char *make_string(char *s, int len, char *buf);
67 char *my_strcat(char *buf, char *fmt, char *s, int len);
69 /* defines for return value of my_strcpy */
70 #define STRCPY_SUCCESS 1
72 #define STRCPY_TRUNCATED -1
73 #define STRCPY_NULL -2
75 int my_strcpy(char *dst, int dst_len, char *src, int src_len);