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>
?
精彩评论