This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using 'strnlen' or 'strnlen_s' with MDK AC6

Hi,

I tried to use 'strnlen' or 'strnlen_s' in MDK, no matter what 'Language C' standard I choose, the compiler throws

" warning: implicit declaration of function 'strnlen_s' is invalid in C99 [-Wimplicit-function-declaration]"

So, any method to eliminate this warning?

Thanks.

Parents
  • strnlen_s is defined in C11, but the implementation is not available in either ARMCC or ARMCLANG in MDK 5.33. At least, it's not defined in any of the header files that ship with the compilers.

    strnlen isn't defined either. And neither function is mentioned in the C/C++ Libraries book.

Reply
  • strnlen_s is defined in C11, but the implementation is not available in either ARMCC or ARMCLANG in MDK 5.33. At least, it's not defined in any of the header files that ship with the compilers.

    strnlen isn't defined either. And neither function is mentioned in the C/C++ Libraries book.

Children