We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 745ade0 commit c0fae59Copy full SHA for c0fae59
1 file changed
include/ls_task.c
@@ -4653,7 +4653,18 @@ int find_next_marker(PLTS_T pLts_t,int pos)
4653
4654
#include "proverbs.h"
4655
4656
-#define stricmp strcasecmp
+//#define stricmp strcasecmp
4657
+// portable version of stricmp - ByteSizedFox
4658
+#include <ctype.h>
4659
+static int stricmp(const char *a, const char *b) {
4660
+ while (*a && *b) {
4661
+ int diff = tolower((unsigned char)*a) - tolower((unsigned char)*b);
4662
+ if (diff != 0) return diff;
4663
+ a++;
4664
+ b++;
4665
+ }
4666
+ return tolower((unsigned char)*a) - tolower((unsigned char)*b);
4667
+}
4668
4669
int ls_task_find_verb_particles(LPTTS_HANDLE_T phTTS,LETTER *word_start,LETTER *word_end)
4670
{
0 commit comments