20 #ifndef _tdsconvert_h_
21 #define _tdsconvert_h_
23 #if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__)
24 #pragma GCC visibility push(hidden)
68 #define TDS_CONVERT_FAIL -1
69 #define TDS_CONVERT_NOAVAIL -2
70 #define TDS_CONVERT_SYNTAX -3
71 #define TDS_CONVERT_NOMEM -4
72 #define TDS_CONVERT_OVERFLOW -5
75 #define TDS_CONVERT_CHAR 256
76 #define TDS_CONVERT_BINARY 257
92 TDS_INT tds_char2hex(TDS_CHAR *dest, TDS_UINT destlen,
const TDS_CHAR * src, TDS_UINT srclen);
104 #if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__)
105 #pragma GCC visibility pop
Definition: tdsconvert.h:78
Used by tds_datecrack.
Definition: tds.h:176
unsigned char tds_willconvert(int srctype, int desttype)
Test if a conversion is possible.
Definition: convert.c:2773
Definition: tdsconvert.h:58
int tm_min
minutes (0-59)
Definition: tdsconvert.h:84
int tm_year
year (0=1900)
Definition: tdsconvert.h:80
int tm_sec
seconds (0-59)
Definition: tdsconvert.h:85
Definition: tdsconvert.h:37
int tm_mday
month day (1-31)
Definition: tdsconvert.h:82
int tm_ms
milliseconds (0-999)
Definition: tdsconvert.h:86
size_t tds_strftime(char *buf, size_t maxsize, const char *format, const TDSDATEREC *timeptr)
format a date string according to an "extended" strftime(3) formatting definition.
Definition: convert.c:2692
TDS_INT tds_convert(const TDSCONTEXT *context, int srctype, const TDS_CHAR *src, TDS_UINT srclen, int desttype, CONV_RESULT *cr)
tds_convert convert a type to another.
Definition: convert.c:1604
TDS_INT tds_get_null_type(int srctype)
Get same type but nullable.
Definition: convert.c:2649
int tm_mon
month (0-11)
Definition: tdsconvert.h:81
Definition: tdsconvert.h:54
int tm_hour
hours (0-23)
Definition: tdsconvert.h:83