forked from esp8266/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstring.h
54 lines (39 loc) · 1.57 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* sys/string.h
*
* Xtensa custom PROGMEM string function definitions
*/
#ifndef _SYS_STRING_H_
#define _SYS_STRING_H_
#include "_ansi.h"
#include <sys/reent.h>
#include <sys/cdefs.h>
#include <sys/features.h>
#define __need_size_t
#define __need_NULL
#include <stddef.h>
#define SIZE_IRRELEVANT 0x7fffffff
#ifdef __cplusplus
extern "C" {
#endif
int _EXFUN(memcmp_P,(const _PTR, const _PTR, size_t));
_PTR _EXFUN(memmem_P, (const _PTR, size_t, const _PTR, size_t));
_PTR _EXFUN(memcpy_P,(_PTR __restrict, const _PTR __restrict, size_t));
_PTR _EXFUN(memmove_P,(_PTR __restrict, const _PTR __restrict, size_t));
_PTR _EXFUN(memccpy_P,(_PTR __restrict, const _PTR __restrict, int, size_t));
_PTR _EXFUN(memchr_P,(const _PTR, int, size_t));
char *_EXFUN(strncpy_P,(char *__restrict, const char *__restrict, size_t));
#define strcpy_P(dest, src) strncpy_P((dest), (src), SIZE_IRRELEVANT)
char *_EXFUN(strncat_P,(char *__restrict, const char *__restrict, size_t));
#define strcat_P(dest, src) strncat_P((dest), (src), SIZE_IRRELEVANT)
int _EXFUN(strncmp_P,(const char *, const char *, size_t));
#define strcmp_P(str1, str2P) strncmp_P((str1), (str2P), SIZE_IRRELEVANT)
int _EXFUN(strncasecmp_P,(const char *, const char *, size_t));
#define strcasecmp_P(str1, str2P) strncasecmp_P((str1), (str2P), SIZE_IRRELEVANT)
size_t _EXFUN(strnlen_P,(const char *, size_t));
#define strlen_P(strP) strnlen_P((strP), SIZE_IRRELEVANT)
char *_EXFUN(strstr_P,(const char *, const char *));
#ifdef __cplusplus
}
#endif
#endif /* _SYS_STRING_H_ */