fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / include / string.h
blobbbc66d469dd3a423a61be4553eb6b4754f2a320d
1 /*
2 * string.h
4 * Definitions for memory and string functions.
5 */
7 #ifndef _STRING_H_
8 #define _STRING_H_
10 #include "_ansi.h"
11 #include <sys/reent.h>
13 #define __need_size_t
14 #include <stddef.h>
16 #ifndef NULL
17 #define NULL 0
18 #endif
20 _BEGIN_STD_C
22 _PTR _EXFUN(memchr,(const _PTR, int, size_t));
23 int _EXFUN(memcmp,(const _PTR, const _PTR, size_t));
24 _PTR _EXFUN(memcpy,(_PTR, const _PTR, size_t));
25 _PTR _EXFUN(memmove,(_PTR, const _PTR, size_t));
26 _PTR _EXFUN(memset,(_PTR, int, size_t));
27 char *_EXFUN(strcat,(char *, const char *));
28 char *_EXFUN(strchr,(const char *, int));
29 int _EXFUN(strcmp,(const char *, const char *));
30 int _EXFUN(strcoll,(const char *, const char *));
31 char *_EXFUN(strcpy,(char *, const char *));
32 size_t _EXFUN(strcspn,(const char *, const char *));
33 char *_EXFUN(strerror,(int));
34 size_t _EXFUN(strlen,(const char *));
35 char *_EXFUN(strncat,(char *, const char *, size_t));
36 int _EXFUN(strncmp,(const char *, const char *, size_t));
37 char *_EXFUN(strncpy,(char *, const char *, size_t));
38 char *_EXFUN(strpbrk,(const char *, const char *));
39 char *_EXFUN(strrchr,(const char *, int));
40 size_t _EXFUN(strspn,(const char *, const char *));
41 char *_EXFUN(strstr,(const char *, const char *));
43 #ifndef _REENT_ONLY
44 char *_EXFUN(strtok,(char *, const char *));
45 #endif
47 size_t _EXFUN(strxfrm,(char *, const char *, size_t));
49 #ifndef __STRICT_ANSI__
50 char *_EXFUN(strtok_r,(char *, const char *, char **));
52 int _EXFUN(bcmp,(const void *, const void *, size_t));
53 void _EXFUN(bcopy,(const void *, void *, size_t));
54 void _EXFUN(bzero,(void *, size_t));
55 int _EXFUN(ffs,(int));
56 char *_EXFUN(index,(const char *, int));
57 _PTR _EXFUN(memccpy,(_PTR, const _PTR, int, size_t));
58 _PTR _EXFUN(mempcpy,(_PTR, const _PTR, size_t));
59 char *_EXFUN(rindex,(const char *, int));
60 int _EXFUN(strcasecmp,(const char *, const char *));
61 char *_EXFUN(strdup,(const char *));
62 char *_EXFUN(_strdup_r,(struct _reent *, const char *));
63 char *_EXFUN(strndup,(const char *, size_t));
64 char *_EXFUN(_strndup_r,(struct _reent *, const char *, size_t));
65 char *_EXFUN(strerror_r,(int, char *, size_t));
66 size_t _EXFUN(strlcat,(char *, const char *, size_t));
67 size_t _EXFUN(strlcpy,(char *, const char *, size_t));
68 int _EXFUN(strncasecmp,(const char *, const char *, size_t));
69 size_t _EXFUN(strnlen,(const char *, size_t));
70 char *_EXFUN(strsep,(char **, const char *));
71 char *_EXFUN(strlwr,(char *));
72 char *_EXFUN(strupr,(char *));
73 #ifdef __CYGWIN__
74 #ifndef DEFS_H /* Kludge to work around problem compiling in gdb */
75 const char *_EXFUN(strsignal, (int __signo));
76 #endif
77 int _EXFUN(strtosigno, (const char *__name));
78 #elif defined(__linux__)
79 char *_EXFUN(strsignal, (int __signo));
80 #endif
82 /* These function names are used on Windows and perhaps other systems. */
83 #ifndef strcmpi
84 #define strcmpi strcasecmp
85 #endif
86 #ifndef stricmp
87 #define stricmp strcasecmp
88 #endif
89 #ifndef strncmpi
90 #define strncmpi strncasecmp
91 #endif
92 #ifndef strnicmp
93 #define strnicmp strncasecmp
94 #endif
96 #endif /* ! __STRICT_ANSI__ */
98 _END_STD_C
100 #endif /* _STRING_H_ */