linux c中字符和数字的转换
1:资料:
sprint:[url]http://blog.chinaunix.net/u1/56078/showart_442252.html[/url]
sscanf:[url]http://www.cnscn.org/htm_data/64/0703/1011.html[/url]
2:sprint:把指定的变量输出到指定的字符串串中sprint(char *str,"%",......);
3:sscanf:把字符串的值输入到指定的变量中
sprint and sscanf可以替换atoi,atof,....itoa ,ftoa.....这样的函数
1:资料:
sprint:[url]http://blog.chinaunix.net/u1/56078/showart_442252.html[/url]
sscanf:[url]http://www.cnscn.org/htm_data/64/0703/1011.html[/url]
2:sprint:把指定的变量输出到指定的字符串串中sprint(char *str,"%",......);
3:sscanf:把字符串的值输入到指定的变量中
sprint and sscanf可以替换atoi,atof,....itoa ,ftoa.....这样的函数