445141126 发表于 2010-9-28 20:53:11

strstr error C267: 'strsrt': requires ANSI-style prototype

我现在在做gps,看到这篇帖子“转载:如何利用strstr和sscanf解析GPS信息”后就照着自己编了个,不过编译时出现“error C267: 'strsrt': requires ANSI-style prototype”怎么回事?,我用keil 3,4都试过了,string.h里面只有extern char *strstr(char *s, char *sub);我找不到strstr的原型,怎么解决???

445141126 发表于 2010-9-28 21:00:26

原来写错了。。。。。。

ScorpioTiger 发表于 2011-7-19 15:48:56

加入头文件,再声明一次就可以了吧
页: [1]
查看完整版本: strstr error C267: 'strsrt': requires ANSI-style prototype