blob: bf642cf534b063332ff82baafb691e3fa14a0c08 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/*
* Portable string handling routines.
* $Id$
* Copyright (c) 1997 by Tycho Softworks.
* For conditions of distribution and reuse see product license.
*/
#ifndef __STD_STRINGS_H__
#define __STD_STRINGS_H__
#ifndef __STD_TYPES_H__
#include <std/types.h>
#endif
#include <string.h>
#include <ctype.h>
#ifndef STRCASECMP_F_MISSING
#define stricmp(s1, s2) strcasecmp(s1, s2)
#define strnicmp(s1, s2, n) strncasecmp(s1, s2, n)
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __NAMESPACE
#define __SPACES __NAMESPACE(__SPACES)
#endif
extern char __SPACES[];
#ifdef STRICMP_F_MISSING
#ifdef __NAMESPACE
#define stricmp __NAMESPACE(stricmp)
#define strnicmp __NAMESPACE(strnicmp)
#endif
int stricmp(const char *s1, const char *s2);
int strnicmp(const char *s1, const char *s2, size_t n);
#endif
#ifdef STRLWR_F_MISSING
#ifdef __NAMESPACE
#define strupr __NAMESPACE(strupr)
#define strlwr __NAMESPACE(strlwr)
#endif
char *strlwr(char *s1);
char *strupr(char *s2);
#endif
#ifdef STRDUP_F_MISSING
#ifdef __NAMESPACE
#define strdup __NAMESPACE(strdup)
#endif
char *strdup(const char *s);
#endif
#ifdef STRISTR_F_MISSING
#ifdef __NAMESPACE
#define stristr __NAMESPACE(stristr)
#endif
char *stristr(char *s1, const char *s2);
#endif
#ifdef __cplusplus
}
#endif
#endif
|