Skip to content

Commit b2fa3d5

Browse files
committed
missing strn program space wrappers
1 parent b791c00 commit b2fa3d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cores/esp8266/pgmspace.h

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ typedef uint32_t prog_uint32_t;
3838
#define strcmp_P(a, b) strcmp((a), (b))
3939
#define strstr_P(a, b) strstr((a), (b))
4040
#define strlen_P(s) strlen((const char *)(s))
41+
#define strcasecmp_P(a, b) strcasecmp((a), (b))
42+
#define strncpy_P(dest, src, size) strncpy((dest), (src), (size))
43+
#define strncat_P(dest, src, size) strncat((dest), (src), (size))
44+
#define strncmp_P(a, b, size) strncmp((a), (b), (size))
45+
#define strnlen_P(s, size) strnlen((const char *)(s), (size))
46+
#define strncasecmp_P(a, b, size) strncasecmp((a), (b), (size))
4147

4248
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
4349
#define pgm_read_word(addr) (*(const unsigned short *)(addr))

0 commit comments

Comments
 (0)