转载自csdn
http://blog.csdn.net/zhangleiyigeren/article/details/6308168
收藏了,自己学习一下
[cpp] view plaincopyprint?
01.#include <stdio.h>
02.#include <memory.h>
03.#include <malloc.h>
04.#include <math.h>
05.#include <string.h>
06.char* my_itoa(int value,char *str,int radix)
07.{
08. int sign = 0;
09. //char *s = str;
10. char ps[32];
11. memset(ps,0,32);
12. int i=0;
13. if(value < 0)
14......
阅读全文