diff options
Diffstat (limited to 'lib/str.c')
| -rw-r--r-- | lib/str.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -133,3 +133,11 @@ strndup (const char *s, size_t maxlen) return (char *) memcpy (new, s, len); } #endif + +extern int +strmatch (const char *str1, const char *str2) +{ + if (!strcmp(str1, str2)) + return 1; + return 0; +} |
