my_itoa
来源:互联网 发布:node.js和php区别 编辑:程序博客网 时间:2024/06/05 03:51
void _my_itoa(CHAR_T * desString , const unsigned int srcNum, const int arry_len)
{
int num_len = 0;
unsigned int tempNum = srcNum ;
unsigned int tempNum_l = srcNum ;
CHAR_T temp_arry [arry_len];
memset(temp_arry, 0 , arry_len);
while(1)
{
if(tempNum_l <= 0) break;
num_len++;
tempNum_l /= 10;
}
while(1)
{
num_len --;
temp_arry[num_len ] = (CHAR_T)(tempNum % 10 + 48);
tempNum /= 10;
if(tempNum == 0) break;
}
memcpy(desString,temp_arry,strlen(temp_arry));
}
{
int num_len = 0;
unsigned int tempNum = srcNum ;
unsigned int tempNum_l = srcNum ;
CHAR_T temp_arry [arry_len];
memset(temp_arry, 0 , arry_len);
while(1)
{
if(tempNum_l <= 0) break;
num_len++;
tempNum_l /= 10;
}
while(1)
{
num_len --;
temp_arry[num_len ] = (CHAR_T)(tempNum % 10 + 48);
tempNum /= 10;
if(tempNum == 0) break;
}
memcpy(desString,temp_arry,strlen(temp_arry));
}
- my_itoa
- my_itoa
- my_itoa
- my_itoa 源码
- my_itoa.c
- My_itoa在C++中的我的itoa(数值转标准字符串)函数
- 使用JavaScript显示当前时间-UTC时间-PDT时间
- ARC
- oracle不同用户间数据导入与导出
- Java关键字final、static使用总结
- 推出vim时自动保存session
- my_itoa
- java GUI组件国际化
- 大牛博客
- EL格式化日期
- Hibernate性能优化 --- 延迟加载(懒加载)
- Cassandra集群部署规划
- asp.net发布网站时三个选项的问题
- hibernate延迟加载(懒加载)详解
- 有趣的UNIX信号