Go to the documentation of this file. 30 #if defined(ARDUINO) && ARDUINO >=100 34 #include <pins_arduino.h> 36 #include <avr/pgmspace.h> 43 #define __PGMSPACE_H_ 1 51 #define PGM_P const char * 54 #define PSTR(str) (str) 60 #define _SFR_BYTE(n) (n) 64 #define memchr_P(str, c, len) memchr((str), (c), (len)) 67 #define memcmp_P(a, b, n) memcmp((a), (b), (n)) 70 #define memcpy_P(dest, src, num) memcpy((dest), (src), (num)) 73 #define memmem_P(a, alen, b, blen) memmem((a), (alen), (b), (blen)) 76 #define memrchr_P(str, val, len) memrchr((str), (val), (len)) 79 #define strcat_P(dest, src) strcat((dest), (src)) 82 #define strchr_P(str, c) strchr((str), (c)) 85 #define strchrnul_P(str, c) strchrnul((str), (c)) 88 #define strcmp_P(a, b) strcmp((a), (b)) 91 #define strcpy_P(dest, src) strcpy((dest), (src)) 94 #define strcasecmp_P(a, b) strcasecmp((a), (b)) 97 #define strcasestr_P(a, b) strcasestr((a), (b)) 100 #define strlcat_P(dest, src, len) strlcat((dest), (src), (len)) 103 #define strlcpy_P(dest, src, len) strlcpy((dest), (src), (len)) 106 #define strlen_P(s) strlen((const char *)(s)) 109 #define strnlen_P(str, len) strnlen((str), (len)) 112 #define strncmp_P(a, b, n) strncmp((a), (b), (n)) 114 #ifndef strncasecmp_P 115 #define strncasecmp_P(a, b, n) strncasecmp((a), (b), (n)) 118 #define strncat_P(a, b, n) strncat((a), (b), (n)) 121 #define strncpy_P(a, b, n) strncmp((a), (b), (n)) 124 #define strpbrk_P(str, chrs) strpbrk((str), (chrs)) 127 #define strrchr_P(str, c) strrchr((str), (c)) 130 #define strsep_P(strp, delim) strsep((strp), (delim)) 133 #define strspn_P(str, chrs) strspn((str), (chrs)) 136 #define strstr_P(a, b) strstr((a), (b)) 139 #define sprintf_P(s, ...) sprintf((s), __VA_ARGS__) 142 #define vfprintf_P(s, ...) vfprintf((s), __VA_ARGS__) 145 #define printf_P(...) printf(__VA_ARGS__) 148 #define snprintf_P(s, n, ...) ((s), (n), __VA_ARGS__) 151 #define vsprintf_P(s, ...) ((s),__VA_ARGS__) 154 #define vsnprintf_P(s, n, ...) ((s), (n),__VA_ARGS__) 157 #define fprintf_P(s, ...) ((s), __VA_ARGS__) 160 #ifndef pgm_read_byte 161 #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) 163 #ifndef pgm_read_word 164 #define pgm_read_word(addr) (*(const unsigned short *)(addr)) 166 #ifndef pgm_read_dword 167 #define pgm_read_dword(addr) (*(const unsigned long *)(addr)) 169 #ifndef pgm_read_float 170 #define pgm_read_float(addr) (*(const float *)(addr)) 173 #ifndef pgm_read_byte_near 174 #define pgm_read_byte_near(addr) pgm_read_byte(addr) 176 #ifndef pgm_read_word_near 177 #define pgm_read_word_near(addr) pgm_read_word(addr) 179 #ifndef pgm_read_dword_near 180 #define pgm_read_dword_near(addr) pgm_read_dword(addr) 182 #ifndef pgm_read_float_near 183 #define pgm_read_float_near(addr) pgm_read_float(addr) 185 #ifndef pgm_read_byte_far 186 #define pgm_read_byte_far(addr) pgm_read_byte(addr) 188 #ifndef pgm_read_word_far 189 #define pgm_read_word_far(addr) pgm_read_word(addr) 191 #ifndef pgm_read_dword_far 192 #define pgm_read_dword_far(addr) pgm_read_dword(addr) 194 #ifndef pgm_read_float_far 195 #define pgm_read_float_far(addr) pgm_read_float(addr) 198 #ifndef pgm_read_pointer 199 #define pgm_read_pointer