SysIII/usr/src/games/master/abbrev.c

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

/*
 *	Returns 1 if a points to a string which is an abbreviation for
 *	b, 0 otherwise. "abbreviation" includes the possibility that
 *	the strings may be equal.
 */
abbrev (a, b)
	register char *a, *b;
{
	while (*a == *b && *a != '\0') {
		a++;
		b++;
	}
	return *a == '\0';
}