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