Kamailio 整数转字符串
链接在这里https://lists.kamailio.org/mailman3/hyperkitty/list/sr-userslists.kamailio.org/thread/ZXPV4JKVBYHC2BW6H5NOWPIAOVFAVIQN/问要怎样把整数转成字符串其实 core 讲的很清楚Comparison operations between two strings are done using strcmp(s1, s2) and it is considered:s1 s2 - if the result of strcmp(s1, s2) is negatives1 s2 - if the result of strcmp(s1, s2) is 0s1 s2 - if the result of strcmp(s1, s2) is positiveOperations between two values with different types are done by converting the second value (right operand) to the type of the first value (left operand).Examples:1 20 - converted to: 1 20 (result: 21)1 20 - converted to: 1 20 (result: 120)4 20 - converted to: 4 20 (result: false)4 20 - converted to: 4 20 (result: true)两个字符串之间的比较操作通过strcmp(s1, s2)完成其比较规则如下若strcmp(s1, s2)的结果为负数则s1 s2若strcmp(s1, s2)的结果为 0则s1 s2若strcmp(s1, s2)的结果为正数则s1 s2对于不同类型的两个值之间的运算会将第二个值右操作数转换为第一个值左操作数的类型。示例1 20→ 转换为1 20结果211 20→ 转换为1 20结果1204 20→ 转换为4 20结果false4 20→ 转换为4 20结果true