/* This function will compare two strings with specified maximum length */
rt_int32_t rt_strncmp(const char *cs, const char *ct, rt_ubase_t count)
/* This function will compare two strings with specified maximum length */
rt_int32_t rt_strncmp(const char *cs, const char *ct, rt_ubase_t count)
{
    register signed char __res = 0;
    while (count)
    {
        if ((__res = *cs - *ct++) != 0 || !*cs++)
            break;
        count --;
    }
    return __res;
}