-
/*
* ssequal.c -- check if a string is a substring of another
*
- * $Id$
- *
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
int
ssequal (char *s1, char *s2)
{
- if (!s1)
- s1 = "";
- if (!s2)
- s2 = "";
+ if (!s1)
+ s1 = "";
+ if (!s2)
+ s2 = "";
- while (*s1)
- if (*s1++ != *s2++)
- return 0;
- return 1;
+ while (*s1)
+ if (*s1++ != *s2++)
+ return 0;
+ return 1;
}