lpcware

strnlen not supported?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by js-nxp on Sun Dec 11 14:53:02 MST 2011
str[B]n[/B]len NOT strlen is not working even though I have string.h included.

A search here doesn't bring up any results. Do I need to change compiler settings somewhere? I tried changing from "compiler default" to C99 and nothing else works.

And by the way to WHAT does the compiler defaults to? Obviously not C99 as I had several errors in some ported code complaining about the format of a for loop where the variable is declared inside the brackets as being only supported in C99 mode.

Outcomes