|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflstr.h"
char *
strdefix (
const char *string,
const char *prefix)
If string starts with specified prefix, returns pointer to character after prefix. Null character is not considered part of the prefix. If string does not start with specified prefix, returns NULL.
{
ASSERT (string);
ASSERT (prefix);
if (strlen (string) >= strlen (prefix)
&& memcmp (string, prefix, strlen (prefix)) == 0)
return ((char *) string + strlen (prefix));
else
return (NULL);
}
| | << | < | > | >> |
|