开发者

I get implicit declaration of function strncmp

I get "implicit declaration of fun开发者_开发问答ction 'strncmp' isinvalid in C99" when use strncmp (xcode 4/ gcc version 4.2.1) How to avoid this ?


From the strncmp(3) man page:

#include <string.h>


Did you forget to #include <string.h>?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜