第十一章 创建Callout Library - 使用 J 链接类型传递标准计数字符串
使用 J 链接类型传递标准计数字符串
iris-callin.h 头文件定义了计数字符串结构 IRIS_EXSTR,表示标准 IRIS 字符串。此结构包含一个字符元素数组(8 位、16 位 Unicode 或 32 位 wchar t)和一个指定数组中元素数量的 int 值(最多字符串长度限制):
typedef struct {
unsigned int len; /* length of string */
union {
Callin_char_t *ch; /* text of the 8-bit string */
unsigned short *wch; /* text of the 16-bit string */
wchar_t *lch; /* text of the 32-bit string */
/* OR unsigned short *lch if 32-bit characters are not enabled */
} str;
} IRIS_EXSTR, *IRIS_EXSTRP;

