/* This module is a confidential and proprietary property of RealTek and possession or use of this module requires written permission of RealTek.  */
LIBC_ROM_TEXT_SECTION _LONG_CALL_ size_t _strnlen(const char *s, size_t count)
/* This module is a confidential and proprietary property of RealTek and possession or use of this module requires written permission of RealTek.  */
LIBC_ROM_TEXT_SECTION _LONG_CALL_ size_t _strnlen(const char *s, size_t count)
{
    const char *sc;
    for (sc = s; count-- && *sc != '\0'; ++sc)
        ;
    return sc - s;
}