to chars
此函数仅为十进制或数字字段生成。将8字节整数值转换为字符串。
原型
MCO_RET classname_fieldname_to_chars(
/*IN*/ mco_int8 scaled_num,
/*OUT*/ char * buf,
/*IN*/ int buf_size
);
参数
scaled_num
mco_int8
要转换为字符字符串的 8 字节整数值。
buf
const char *
表示整数值的字符字符串。
buf_size
int
缓冲区的大小。
返回
MCO_S_OK
转换成功。
MCO_E_ILLEGAL_PARAM
scaled_num
中存在非法值。