summaryrefslogtreecommitdiff
path: root/lib/str.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/str.c')
-rw-r--r--lib/str.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/str.c b/lib/str.c
index 16f759c074..cfdb6e024e 100644
--- a/lib/str.c
+++ b/lib/str.c
@@ -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;
+}