16进制转10进制


int GetValue( char* strInValue,char* strOutValue )
{
if (NULL == strInValue || NULL == strOutValue) {
return -1;
}

int result;
sscanf(strInValue, "%x", &result);
sprintf(strOutValue, "%d", result);

return 0;
}

posted @ 2016-08-31 20:02  昭瑶  阅读(284)  评论(0编辑  收藏  举报