SPRUIG8J January 2018 – March 2024
/*****************************************************************************/
/* string.h vx.xx (Excerpted) */
/*****************************************************************************/
#ifdef _INLINE
#define _IDECL static inline
#else
#define _IDECL extern _CODE_ACCESS
#endif
_IDECL size_t strlen(const char *_string);
#ifdef _INLINE
/****************************************************************************/
/* strlen */
/****************************************************************************/
static inline size_t strlen(const char *string)
{
size_t n = (size_t)-1;
const char *s = string - 1;
do n++; while (*++s);
return n
}
#endif