Tool/software: TI C/C++ Compiler
Adding #include <string.h> or "string.h" all version CCS compilers and code analysis marks various inline C+ directives Errors. Even if adding _INLINE or _STRLEN to project symbols list code analysis marks for instance strlen() being unresolved. Should it not be includes under the compiler are exclusive by rights not have to be manually added as analysis exemption rules?
Also c_str() or equivalent C+ directive seem to be missing from compiler tool chains 8.2.5 > is there a known equivalent?
#pragma diag_pop _OPT_IDECL size_t strlen(const char *string); _OPT_IDECL char *strcpy(char *dest, const char *src); ~~~~~~~~~
#if defined(_INLINE) || defined(_STRLEN)
_OPT_IDEFN size_t strlen(const char *string)
{
size_t n = (size_t)-1;
const char *s = string;
do n++; while (*s++);
return n;
}
