strnlen and strnstr undefined

29 May 2012

The compiler says strnlen() and strnstr() are undefined, even though I include <string.h> . Am I doing something wrong, or is there a workaround?

29 May 2012

Those are not standard C functions. Use strlen/strstr instead or a third-party implementation.