2 * Compatibility layer for string operations on different platforms.
5 #ifndef __helper__string_h__
6 #define __helper__string_h__
12 #include <gammu-config.h>
21 #ifndef HAVE_STRCASESTR
23 * Case insensitive substring location, libc compatibility.
27 extern char *strcasestr(const char *s
, const char *find
);
30 #ifndef HAVE_STRCHRNUL
31 extern char *strchrnul(char *s
, int find
);
34 #ifndef HAVE_STRNCASECMP
36 #define strncasecmp _strnicmp
38 # define INTERNAL_STRNCASECMP
39 extern int strncasecmp (const char *s1
, const char *s2
, size_t n
);
43 #ifndef HAVE_STRCASECMP
45 #define strcasecmp _stricmp
47 # define INTERNAL_STRCASECMP
49 * Case insensitive string comparing, libc compatibility.
53 extern int strcasecmp (const char *s1
, const char *s2
);
58 wchar_t towlower (wchar_t c
);