- 字符串还原
- 7 年前 @
/in/foo.c: In function 'test':
/in/foo.c:9:5: warning: implicit declaration of function 'strrev' [-Wimplicit-function-declaration]
strrev(x);
^~~~~~
/in/foo.c: In function 'main':
/in/foo.c:22:22: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
printf("%s\n",strrev(mw[i]));
^
/tmp/ccR9Tj67.o: In function test':
strrev'
foo.c:(.text+0x3e): undefined reference to
/tmp/ccR9Tj67.o: In function main':
strrev'
foo.c:(.text.startup+0xaf): undefined reference to
collect2: error: ld returned 1 exit status
3 条评论
-
Orina_zju LV 8 @ 7 年前
貌似还真不是标准里的,应该是编译器自己加的扩展
标准里的只有这些:http://www.cplusplus.com/reference/cstring/ -
7 年前@
您可以使用
-
7 年前@
不是啊233
- 1