char
Información de DDL: CHAR(n)
Información de C++: UdxBase::UDX_FIXED
struct StringArg
{
char* data;
int length; // Bytes used by string data (not characters).
int dec_length; // Character declared length ie NCHAR(20) = 20. Will
// also be set if VARCHAR or NVARCHAR.
};
struct StringReturn
{
char* data;
int size;
// On enter it is the size (in bytes) allocated for string data.
// On return it is the size (in bytes) actually used.
};
El tipo char a menudo tiene espacios implícitos al final cuando se pasa como un argumento. La diferencia entre la longitud especificada y dec_length indica cuántos espacios finales se deben considerar. La longitud está en bytes y dec_length en caracteres.