dthelp/parser: use standard ctype case functions

This commit is contained in:
Chase
2025-11-24 21:55:57 -05:00
committed by Jon Trulson
parent 48aaa75f11
commit 9d9f3f9380
32 changed files with 27 additions and 302 deletions

View File

@@ -29,13 +29,11 @@
#include "basic.h"
int m_upper(int c);
int m_upstrcmp(char *p, char *q)
{
do {
if (m_upper((int) *p) < m_upper((int) *q)) return(-1) ;
if (m_upper((int) *p) > m_upper((int) *q++)) return(1) ;
if (toupper((int) *p) < toupper((int) *q)) return(-1) ;
if (toupper((int) *p) > toupper((int) *q++)) return(1) ;
} while (*p++) ;
return(0) ;
}