- Adapted indenation to new agreed upon system
This commit is contained in:
@ -81,16 +81,18 @@
|
||||
**====================================================================
|
||||
** StrMatch - compare two strings.
|
||||
*/
|
||||
int StrMatch (
|
||||
int StrMatch(
|
||||
/* ========
|
||||
*/ char *str_a,
|
||||
char *str_b,
|
||||
int min_len) {
|
||||
*/ char *str_a,
|
||||
char *str_b, int min_len)
|
||||
{
|
||||
|
||||
int i = 0;
|
||||
int i = 0;
|
||||
|
||||
while ((tolower(str_a[i]) == tolower(str_b[i])) && (str_a[i] != '\0')) i++;
|
||||
while ((tolower(str_a[i]) == tolower(str_b[i])) && (str_a[i] != '\0'))
|
||||
i++;
|
||||
|
||||
return ((str_a[i] == '\0') && (i >= min_len));
|
||||
}
|
||||
|
||||
return ((str_a[i] == '\0') && (i >= min_len));
|
||||
}
|
||||
/*-------------------------------------------------- End of StrMatch.C =======*/
|
||||
|
Reference in New Issue
Block a user