I get an implicit declaration of strncmp function

I get the "implicit declaration of the function" strncmp "isinvalid in C99" when using strncmp (xcode 4 / gcc version 4.2.1) How to avoid this?

+13
source share
3 answers

On the strncmp(3) man page:

  #include <string.h> 
+32
source

Have you forgot #include <string.h> ?

+3
source

get "implicit function declaration 'strncmp' invalid in C99" when using strncmpget cheap hosting in Malaysia - MilesWeb

0
source

Source: https://habr.com/ru/post/898182/


All Articles