Commit FS#12096 by Stephan Grossklass. Increases the maximum ID3v2 field length...
[kugel-rb.git] / firmware / libc / include / string.h
blobf4914eadff7e58fc901eb414ca5ed28791b92629
1 /*
2 * string.h
4 * Definitions for memory and string functions.
5 */
7 #ifndef _STRING_H_
8 #define _STRING_H_
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
14 #include "_ansi.h"
16 #define __need_size_t
17 #define __need_NULL
18 #include <stddef.h>
20 _PTR _EXFUN(memchr,(const _PTR, int, size_t));
21 int _EXFUN(memcmp,(const _PTR, const _PTR, size_t));
22 _PTR _EXFUN(memcpy,(_PTR, const _PTR, size_t));
23 _PTR _EXFUN(memmove,(_PTR, const _PTR, size_t));
24 _PTR _EXFUN(memset,(_PTR, int, size_t));
25 char *_EXFUN(strcat,(char *, const char *));
26 char *_EXFUN(strchr,(const char *, int));
27 int _EXFUN(strcmp,(const char *, const char *));
28 int _EXFUN(strcoll,(const char *, const char *));
29 char *_EXFUN(strcpy,(char *, const char *));
30 size_t _EXFUN(strcspn,(const char *, const char *));
31 char *_EXFUN(strerror,(int));
32 size_t _EXFUN(strlen,(const char *));
33 char *_EXFUN(strncat,(char *, const char *, size_t));
34 int _EXFUN(strncmp,(const char *, const char *, size_t));
35 char *_EXFUN(strpbrk,(const char *, const char *));
36 char *_EXFUN(strrchr,(const char *, int));
37 size_t _EXFUN(strspn,(const char *, const char *));
38 char *_EXFUN(strstr,(const char *, const char *));
39 char *_EXFUN(strcasestr,(const char *, const char *));
41 size_t strlcpy(char *dst, const char *src, size_t siz);
42 size_t strlcat(char *dst, const char *src, size_t siz);
44 #ifndef _REENT_ONLY
45 char *_EXFUN(strtok,(char *, const char *));
46 #endif
48 size_t _EXFUN(strxfrm,(char *, const char *, size_t));
50 #ifndef __STRICT_ANSI__
51 char *_EXFUN(strtok_r,(char *, const char *, char **));
53 _PTR _EXFUN(memccpy,(_PTR, const _PTR, int, size_t));
54 int _EXFUN(strcasecmp,(const char *, const char *));
55 int _EXFUN(strncasecmp,(const char *, const char *, size_t));
57 #ifdef __CYGWIN__
58 #ifndef DEFS_H /* Kludge to work around problem compiling in gdb */
59 const char *_EXFUN(strsignal, (int __signo));
60 #endif
61 int _EXFUN(strtosigno, (const char *__name));
62 #endif
64 /* These function names are used on Windows and perhaps other systems. */
65 #ifndef strcmpi
66 #define strcmpi strcasecmp
67 #endif
68 #ifndef stricmp
69 #define stricmp strcasecmp
70 #endif
71 #ifndef strncmpi
72 #define strncmpi strncasecmp
73 #endif
74 #ifndef strnicmp
75 #define strnicmp strncasecmp
76 #endif
78 #endif /* ! __STRICT_ANSI__ */
80 #ifdef __cplusplus
82 #endif
83 #endif /* _STRING_H_ */