4.4BSD/usr/src/contrib/mh-6.8/sbr/ssequal.c

Compare this file to the similar file:
Show the results in this format:

/* ssequal.c - initially equal? */


ssequal (substr, str)
register char  *substr,
               *str;
{
    if (!substr)
	substr = "";
    if (!str)
	str = "";

    while (*substr)
	if (*substr++ != *str++)
	    return 0;
    return 1;
}