From 0e68877365d02bd040fe28cd2054077992883a67 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 26 Apr 2002 00:27:55 +0000
Subject: [PATCH] Created local strupr implementation for Unix builds.

---
 src/uifc/uifcx.c | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/src/uifc/uifcx.c b/src/uifc/uifcx.c
index 8f0a90901b..b094816454 100644
--- a/src/uifc/uifcx.c
+++ b/src/uifc/uifcx.c
@@ -167,6 +167,23 @@ static void truncsp(char *str)
 	while(c && (uchar)str[c-1]<=SP) c--;
 	str[c]=0;
 }
+
+/****************************************************************************/
+/* Convert ASCIIZ string to upper case										*/
+/****************************************************************************/
+#if defined(__unix__)
+static char* strupr(char* str)
+{
+	char*	p=str;
+
+	while(*p) {
+		*p=toupper(*p);
+		p++;
+	}
+	return(str);
+}
+#endif
+
 /****************************************************************************/
 /* General menu function, see uifc.h for details.							*/
 /****************************************************************************/
@@ -174,7 +191,7 @@ int ulist(int mode, char left, int top, char width, int *cur, int *bar
 	, char *title, char **option)
 {
     char str[128];
-	int i,j,opts;
+	int i,opts;
     int optnumlen;
     int yesno=0;
     int lines;
-- 
GitLab