diff options
Diffstat (limited to 'handle.c')
-rw-r--r-- | handle.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -38,10 +38,7 @@ from The Open Group. #include "wq.h" #include <stdlib.h> #include <stdint.h> - -#ifdef HAVE_STRNCASECMP #include <strings.h> -#endif static XModifierKeymap *map = NULL; @@ -830,27 +827,6 @@ do_clear(char *line, int len) add_to_work_queue (uop); } -#ifndef HAVE_STRNCASECMP -static int -strncasecmp(const char *a, const char *b, int n) -{ - int i; - int a1, b1; - - for (i = 0; i < n; i++, a++, b++) { - if (!*a) return -1; - if (!*b) return 1; - - if (*a != *b) { - a1 = (isascii(*a) && isupper(*a)) ? tolower(*a) : *a; - b1 = (isascii(*b) && isupper(*b)) ? tolower(*b) : *b; - if (a1 != b1) return b1 - a1; - } - } - return 0; -} -#endif - /* * do_pointer = get list of numbers of the form * |