6 #if defined(ARDUINO_SAMD_ZERO) 7 #warning Arduino Zero may need SERIAL_PORT_MONITOR fixed (see USER_GUIDE.md) 10 #if defined(ESP8266) || defined(ESP32) 12 const char* strchr_P(
const char* s,
int c) {
15 char d = pgm_read_byte(s);
16 if (cc == d)
return s;
17 if (!d)
return nullptr;
22 const char* strrchr_P(
const char* s,
int c) {
24 const char* found =
nullptr;
26 char d = pgm_read_byte(s);
27 if (cc == d) found = s;
37 if (a == b) {
return 0; }
38 if (a ==
nullptr) {
return -1; }
39 if (b ==
nullptr) {
return 1; }
42 uint8_t ca = pgm_read_byte(a);
43 uint8_t cb = pgm_read_byte(b);
44 if (ca != cb)
return (
int) ca - (int) cb;
45 if (ca ==
'\0')
return 0;
int acetime_strcmp_PP(const char *a, const char *b)
Compare 2 strings in flash memory.
Macros and definitions that provide a consistency layer among the various Arduino boards for compatib...