您的位置:首页 > 其它

字符串格式化

2015-12-02 11:38 197 查看
MINT32

ImgSensor::open(MINT32 sensorIdx)

{

    MINT32 err = SENSOR_NO_ERROR;

//  <> <2015-10-26> modify for CR01574862 begin
#if ORIGINAL_VERSION
#else
property_set("debug.sys.custom.current", "600000");

//carson++
//char value[PROPERTY_VALUE_MAX];
//itoa(sensorIdx, value, 10);
//property_set("debug.sys.custom.sensoridx", value);

char str[PROPERTY_VALUE_MAX];
sprintf(str, "%d", sensorIdx);
property_set("debug.sys.custom.sensoridx", str);

//carson--


#endif
//  <> <2015-10-26> modify for CR01574862 end
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: