#define SQL_TEXT Latin_Text #include "sqltypes_td.h" void strrev13(VARCHAR_LATIN *input, int inplen, VARBYTE *result) { int i; for (i=0; i< inplen; i++) result->bytes[inplen-i-1] = input[i]; result->length = inplen; /* memcpy(result,input,inplen); */ } void strrevcomp_varchar(VARCHAR_LATIN *InputValue, VARBYTE *ResultValue, char sqlstate[6]) { int nullIndicator; int length = FNC_GetVarCharLength(InputValue); if (InputValue == NULL) { strcpy(sqlstate, "03288"); return; } strrev13(InputValue, length, ResultValue); strcpy(sqlstate, "00000"); }