/* Compare two strings until get the null character in the second one.  */
static char* checkStr(char *ptr, char const *str)
/* Compare two strings until get the null character in the second one.  */
static char* checkStr(char *ptr, char const *str)
{
    while (*str)
        if (*ptr++ != *str++)
            return 0;
    return ptr;
}