Index: octstr.c
===================================================================
RCS file: /home/cvs/gateway/gwlib/octstr.c,v
retrieving revision 1.166
diff -u -r1.166 octstr.c
--- octstr.c	11 Feb 2005 15:35:48 -0000	1.166
+++ octstr.c	25 Feb 2005 00:07:33 -0000
@@ -954,6 +954,18 @@
     return strcmp(ostr->data, str);
 }
 
+int octstr_case_str_compare(const Octstr *os1, const char*str)
+{
+    seems_valid(os1);
+
+    if (str == NULL)
+        return -1;
+    if (os1->data == NULL)
+		return strcmp("", str);
+
+    return strcasecmp(os1->data, str);
+}
+
 
 int octstr_str_ncompare(const Octstr *ostr, const char *str, long n)
 {
