|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflstr.h"
Bool
strprefixed (
const char *string,
const char *prefix)
If string starts with specified prefix, returns TRUE. If string does not start with specified prefix, returns FALSE.
{
ASSERT (string);
ASSERT (prefix);
if (*string == *prefix /* Check that first letters match */
&& strlen (string) >= strlen (prefix)
&& memcmp (string, prefix, strlen (prefix)) == 0)
return (TRUE);
else
return (FALSE);
}
| | << | < | > | >> |
|