开发者

I get implicit declaration of function strncmp

开发者 https://www.devze.com 2023-04-07 23:29 出处:网络
I get \"implicit declaration of fun开发者_开发问答ction \'strncmp\' isinvalid in C99\" when use strncmp (xcode 4/ gcc version 4.2.1)

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

精彩评论

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