有没有办法在 CAPL 中将整数转换为字符?

Is there a way to convert integer to char in CAPL?

我尝试使用 CAPL 中的 filePutString() 函数将整数变量写入文件。有没有办法将整数转换为字符,因为 filePutString() 仅使用字符作为参数。

我想最好的方法是使用 snprintf。

char buffer[100];
int number = 10;
snprintf(buffer, elcount(buffer), "Text: %d", number);