char* strnupr (char* start_l, int n);
#if !HAVE_MEMMEM // GNU extension.
-Byte *memmem (Byte const * haystack, int haystack_len,
- Byte const *needle, int needle_len);
+void *memmem (void const * haystack, int haystack_len,
+ void const *needle, int needle_len);
#endif HAVE_MEMMEM
#if !HAVE_SNPRINTF // GNU extension.
Manual v1.15, but it is with /usr/include/string.h */
Byte *
-memmem (Byte const *haystack, int haystack_len,
+_memmem (Byte const *haystack, int haystack_len,
Byte const *needle,int needle_len)
{
Byte const * end_haystack = haystack + haystack_len - needle_len + 1;
return 0;
}
+void *
+memmem (void const *haystack, int haystack_len,
+ void const *needle,int needle_len)
+{
+ Byte const* haystack_byte_c_l = (Byte const*)haystack;
+ Byte const* needle_byte_c_l = (Byte const*)needle;
+ return _memmem (haystack_byte_c_l, haystack_len, needle_byte_c_l, needle_len);
+}
+
#endif
Byte *