-
Notifications
You must be signed in to change notification settings - Fork 1
/
string.h
41 lines (31 loc) · 889 Bytes
/
string.h
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
37
38
39
40
41
/** \file
* \brief Functions for operating on C-style strings
*
* \author Peter 'png' Hille <peter@das-system-networks.de>
*/
#ifndef DSNCOMPAT_STRING_H
#define DSNCOMPAT_STRING_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifndef HAVE_STRICMP
int stricmp(const char* s1, const char* s2);
#endif /* !HAVE_STRICMP */
#ifndef HAVE_STRNICMP
int strnicmp(const char* s1, const char* s2, size_t n);
#endif /* !HAVE_STRNICMP */
#ifndef HAVE_STRCASECMP
int strcasecmp(const char* s1, const char* s2);
#endif /* !HAVE_STRCASECMP */
#ifndef HAVE_STRNCASECMP
int strncasecmp(const char* s1, const char* s2, size_t n);
#endif
char* strtoupper(char* s);
char* strntoupper(char* s, size_t n);
char* strtolower(char* s);
char* strntolower(char* s, size_t n);
#ifdef __cplusplus
};
#endif /* __cplusplus */
#enidf /* !DSNCOMPAT_STRING_H */