ChinaUnix.net
相关文章推荐:

linux itoa函数

stdlib.h 中有itoa的声明,但link时却无法找到itoa的库代码

by DavidYangPeng - C/C++ - 2004-05-30 14:15:08 阅读(1680) 回复(2)

相关讨论

非常奇怪的发现, 我的stdlib.h中并没有关于itoa函数的声明, 无法使用itoa函数,那位大侠帮帮忙! 谢谢

by jixian01 - C/C++ - 2008-01-27 22:03:40 阅读(4012) 回复(5)

程序中有这样一段: ..... num1=100; num2=200; num3=300; itoa(num1,str1,10); printf("str1:%s\n",str1); itoa(num2,str2,10); printf("str2:%s\n",str2); itoa(num3,str3,10); printf("str3:%s\n",str3); printf("str2:%s\n",str2); printf("str1%s\n",str1); ......: 运行结果: str1:100 str2:200 str3:300 str2:300 str1:300 就是说str1和str2都变成了最后一次itoa转换的结果了。我换用sprintf()结果也一样。那么,如何消...

by erikingdom - C/C++ - 2005-05-13 12:27:40 阅读(1659) 回复(7)

还有一些类似的库函数,在哪里能找到源代码呢?

by aaronflying - C/C++ - 2004-11-11 22:49:49 阅读(3623) 回复(3)

下面这个程序是测试一下itoa();但是结果非我所预料 所以请问我哪里是不是理解错了 [code] #include ; #include ; main(){ int i=1111; char *a="hello"; char *b = NULL; printf("%s\n",a); printf("%s\n",b); itoa(i,b,6); printf("%s",b); } [/code]

by sprinklexu - C/C++ - 2004-04-09 16:54:45 阅读(2202) 回复(12)
by los - C/C++ - 2006-08-10 15:51:14 阅读(1327) 回复(1)

itoa函数 char * itoa(char * chr,int i) { if (i/10!=0) itoa(chr,i/10); chr[lab++]=i%10+'0'; return; } char * itoa(n, base) long n; /* abs k16 */ int base; { register char *p; register int minus; static char buf[36]; p = &buf[36]; *--p = ''; if (n 0) { *--p = "0123456789abcdef"[n % base]; n /= base; } if (minus) *--p = '-'; return p; } itoa 原型:...

by youyuanyin - Solaris文档中心 - 2006-03-11 16:54:25 阅读(1074) 回复(0)

使用AIX中的itoa时man中没有,find后发现extension.h中有原形定义,但编译时出现 ld: 0711-317 ERROR: Undefined symbol: .ltoa ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. 错误,是否是安装时未安装全??? 程序如下: [code] #include ; #include ; int main(){ long i=7421; char str[10]; printf("%d\n",i); ltoa(i,str,10);...

by dysnake - AIX - 2004-05-19 08:44:35 阅读(2076) 回复(3)

const char *itoa(int i) { static char buf[256]; sprintf(buf, "%d", i); return buf; }

by hardie - C/C++ - 2009-07-15 10:11:13 阅读(2629) 回复(7)

我用的是SunOS 5.8;GCC 3.3 #include ; int main () { int i = 10; printf ("%d\n", i); printf ("%s\n", itoa (i)); } Undefined first referenced symbol in file itoa /var/tmp//ccdTvgNm.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status ...

by johnf - C/C++ - 2004-10-26 14:18:11 阅读(2907) 回复(9)

char a[10]; itoa(120,a,10); 在RH9下怎么老说itoa : undefined reference to `itoa' 大家帮帮忙!

by xhl - C/C++ - 2004-04-12 21:46:02 阅读(4283) 回复(12)