summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 60ec000..e241fa4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,5 +1,5 @@
/* Ratpoison.
- * Copyright (C) 2000, 2001 Shawn Betts
+ * Copyright (C) 2000, 2001, 2002, 2003 Shawn Betts
*
* This file is part of ratpoison.
*
@@ -34,6 +34,7 @@
#include <getopt.h>
#include <string.h>
#include <sys/wait.h>
+#include <ctype.h>
#include "ratpoison.h"
@@ -151,6 +152,18 @@ xsprintf (char *fmt, ...)
return buffer;
}
+/* A case insensitive strncmp. */
+int
+str_comp (char *s1, char *s2, int len)
+{
+ int i;
+
+ for (i=0; i<len; i++)
+ if (toupper (s1[i]) != toupper (s2[i])) return 0;
+
+ return 1;
+}
+
void
sighandler (int signum)
{