mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Add memmove_P, use it in String to ensure F() safety (#6514)
memmove_P is now in libc, so use it to allow WString to handle F() pointers without errors. Supercedes #6368 Fixes #6384
This commit is contained in:
committed by
GitHub
parent
990ec759f2
commit
8dd068eb40
@ -60,6 +60,7 @@ inline size_t strlen_P(const char *s) { return strlen(s); }
|
||||
inline int vsnprintf_P(char *str, size_t size, const char *format, va_list ap) { return vsnprintf(str, size, format, ap); }
|
||||
|
||||
#define memcpy_P memcpy
|
||||
#define memmove_P memmove
|
||||
#define strncpy_P strncpy
|
||||
#define strcmp_P strcmp
|
||||
#define memccpy_P memccpy
|
||||
|
Reference in New Issue
Block a user