summarylogtreecommitdiffstats
path: root/p1.patch
blob: 2a40d8c13cac6df2c9ef4ea46b685bada9951bc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- src/mytetra_dev-v.1.44.160/thirdParty/mimetex/mimetex.c	2023-11-19 11:15:53.686542658 +0400
+++ src/mytetra_dev-v.1.44.160/thirdParty/mimetex/mimetex.c	2023-11-19 11:15:19.953209838 +0400
@@ -422,11 +422,6 @@
 header files and macros
 -------------------------------------------------------------------------- */
 
-// #define	_GNU_SOURCE			/* for strcasestr() in string.h */
-// char	*strcasestr();			/* non-standard extension */
-// #define _GNU_SOURCE char *strcasestr(const char *haystack, const char *needle);
-const char *strcasestr(const char *s1, const char *s2);
-
 /* --- standard headers --- */
 #include <stdio.h>
 #include <stdlib.h>
@@ -18307,21 +18302,5 @@
     return 0;
 }
 
-const char *strcasestr(const char *s1, const char *s2)
-{
- // if either pointer is null
- if (s1 == 0 || s2 == 0)
-  return 0;
- // the length of the needle
- size_t n = strlen(s2);
- // iterate through the string
- while(*s1)
- // if the compare which is case insensitive is a match, return the pointer
- if(!mystrncmpi(s1++,s2,n))
-  return (s1-1);
- // no match was found
- return 0;
-}
-
 /* ======================= END-OF-FILE MIMETEX.C ========================= */