/* Compare the first specified bytes of 2 given strings Return 0 if equals Return >0 if 1st string > 2nd string Return <0 if 1st string < 2nd string  */
int strncmp(const char *pString1, const char *pString2, size_t count)
/* Compare the first specified bytes of 2 given strings Return 0 if equals Return >0 if 1st string > 2nd string Return <0 if 1st string < 2nd string  */
int strncmp(const char *pString1, const char *pString2, size_t count)
{
    int r;
    while(count) {
        r = *pString1 - *pString2;
        if (r == 0) {
            if (*pString1 == 0) {
                break;
            }
            pString1++;
            pString2++;
            count--;
            continue;
        }
        return r;
    }
    return 0;
}