AVR Libc Home Page | AVR Libc Development Pages | |||
Main Page | User Manual | Reference | FAQ | Example Projects |
01 1 Copyright (c) 2002-2007 Marek Michalkiewicz 022Copyright (c) 2006, Carlos Lamas
1000#define pgm_read_dword(address_short) pgm_read_dword_near(address_short)
1009#define pgm_read_float(address_short) pgm_read_float_near(address_short)
1018#define pgm_read_ptr(address_short) pgm_read_ptr_near(address_short)
1053#define pgm_get_far_address(var) \
memchr_P(const void *, int __val, size_t __len) __ATTR_CONST__;
extern int memcmp_P(const void *, const void *, size_t) __ATTR_PURE__;
memccpy_P(void *, const void *, int __val, size_t);
memcpy_P(void *, const void *, size_t);
memmem_P(const void *, size_t, const void *, size_t) __ATTR_PURE__;
void * memrchr_P(const void *, int __val, size_t __len) __ATTR_CONST__;
char *strcat_P(char *, const char *);
char * strchr_P(const char *, int __val) __ATTR_CONST__;
char * strchrnul_P(const char *, int __val) __ATTR_CONST__;
strcmp_P(const char *, const char *) __ATTR_PURE__;
char *strcpy_P(char *, const char *);
strcasecmp_P(const char *, const char *) __ATTR_PURE__;
strcasestr_P(const char *, const char *) __ATTR_PURE__;
strcspn_P(const char *__s, const char * __reject) __ATTR_PURE__;
size_t strlcat_P (char *, const char *, size_t );
strlcpy_P (char *, const char *, size_t );
size_t strnlen_P(const char *, size_t) __ATTR_CONST__; /* program memory can't change */
strncmp_P(const char *, const char *, size_t) __ATTR_PURE__;
strncasecmp_P(const char *, const char *, size_t) __ATTR_PURE__;
strncat_P(char *, const char *, size_t);
char *strncpy_P(char *, const char *, size_t);
strpbrk_P(const char *__s, const char * __accept) __ATTR_PURE__;
strrchr_P(const char *, int __val) __ATTR_CONST__;
char *strsep_P(char **__sp, const char * __delim);
strspn_P(const char *__s, const char * __accept) __ATTR_PURE__;
char *strstr_P(const char *, const char *) __ATTR_PURE__;
char *strtok_P(char *__s, const char * __delim);
char *strtok_rP(char *__s, const char * __delim, char **__last);
strlen_PF(uint_farptr_t src) __ATTR_CONST__; /* program memory can't change */
size_t strnlen_PF(uint_farptr_t src, size_t len) __ATTR_CONST__; /* program memory can't change */
memcpy_PF(void *dest, uint_farptr_t src, size_t len);
strcpy_PF(char *dest, uint_farptr_t src);
char *strncpy_PF(char *dest, uint_farptr_t src, size_t len);
char *strcat_PF(char *dest, uint_farptr_t src);
strlcat_PF(char *dst, uint_farptr_t src, size_t siz);
strncat_PF(char *dest, uint_farptr_t src, size_t len);
int strcmp_PF(const char *s1, uint_farptr_t s2) __ATTR_PURE__;
strncmp_PF(const char *s1, uint_farptr_t s2, size_t n) __ATTR_PURE__;
int strcasecmp_PF(const char *s1, uint_farptr_t s2) __ATTR_PURE__;
int strncasecmp_PF(const char *s1, uint_farptr_t s2, size_t n) __ATTR_PURE__;
char *strstr_PF(const char *s1, uint_farptr_t s2);
size_t strlcpy_PF(char *dst, uint_farptr_t src, size_t siz);
int memcmp_PF(const void *, uint_farptr_t, size_t) __ATTR_PURE__;
strlen_P(const char * s);
extern size_t __strlen_P(const char *) __ATTR_CONST__; /* internal helper function */
__attribute__((__always_inline__)) static __inline__ size_t strlen_P(const char * s);
strlen_P(const char *s) {
memcmp_P
int memcmp_P(const void *, const void *, size_t) __ATTR_PURE__
Compare memory areas.
prog_uint32_t
uint32_t PROGMEM prog_uint32_t
Definition: pgmspace.h:288
strtok_P
char * strtok_P(char *__s, const char *__delim)
Parses the string into tokens.
int64_t
signed long long int int64_t
Definition: stdint.h:110
memmem_P
void * memmem_P(const void *, size_t, const void *, size_t) __ATTR_PURE__
strstr_P
char * strstr_P(const char *, const char *) __ATTR_PURE__
Locate a substring.
prog_int32_t
int32_t PROGMEM prog_int32_t
Definition: pgmspace.h:270
prog_uint64_t
uint64_t PROGMEM prog_uint64_t
Definition: pgmspace.h:330
strncpy_P
char * strncpy_P(char *, const char *, size_t)
prog_uchar
unsigned char PROGMEM prog_uchar
Definition: pgmspace.h:180
prog_void
void PROGMEM prog_void
Definition: pgmspace.h:144
strchr_P
const char * strchr_P(const char *, int __val)
Locate character in program space string.
strlcpy_P
size_t strlcpy_P(char *, const char *, size_t)
Copy a string from progmem to RAM.
prog_int64_t
int64_t PROGMEM prog_int64_t
Definition: pgmspace.h:309
memcpy_PF
void * memcpy_PF(void *dest, uint_farptr_t src, size_t len)
Copy a memory block from flash to SRAM.
int16_t
signed int int16_t
Definition: stdint.h:88
int8_t
signed char int8_t
Definition: stdint.h:78
strcasecmp_P
int strcasecmp_P(const char *, const char *) __ATTR_PURE__
Compare two strings ignoring case.
strcspn_P
size_t strcspn_P(const char *__s, const char *__reject) __ATTR_PURE__
strcpy_PF
char * strcpy_PF(char *dest, uint_farptr_t src)
Duplicate a string.
strcat_PF
char * strcat_PF(char *dest, uint_farptr_t src)
Concatenates two strings.
PROGMEM
#define PROGMEM
Definition: pgmspace.h:113
strlcat_PF
size_t strlcat_PF(char *dst, uint_farptr_t src, size_t siz)
Concatenate two strings.
__attribute__
static __inline void __attribute__((__always_inline__)) __power_all_enable()
Definition: power.h:1148
strncat_PF
char * strncat_PF(char *dest, uint_farptr_t src, size_t len)
Concatenate two strings.
strncat_P
char * strncat_P(char *, const char *, size_t)
Concatenate two strings.
int32_t
signed long int int32_t
Definition: stdint.h:98
memcpy_P
void * memcpy_P(void *, const void *, size_t)
strstr_PF
char * strstr_PF(const char *s1, uint_farptr_t s2)
Locate a substring.
strcmp_P
int strcmp_P(const char *, const char *) __ATTR_PURE__
strlcpy_PF
size_t strlcpy_PF(char *dst, uint_farptr_t src, size_t siz)
Copy a string from progmem to RAM.
strlen_P
static size_t strlen_P(const char *s)
strtok_rP
char * strtok_rP(char *__s, const char *__delim, char **__last)
Parses string into tokens.
prog_int8_t
int8_t PROGMEM prog_int8_t
Definition: pgmspace.h:198
memcmp_PF
int memcmp_PF(const void *, uint_farptr_t, size_t) __ATTR_PURE__
Compare memory areas.
strrchr_P
const char * strrchr_P(const char *, int __val)
Locate character in string.
strcmp_PF
int strcmp_PF(const char *s1, uint_farptr_t s2) __ATTR_PURE__
Compares two strings.
uint8_t
unsigned char uint8_t
Definition: stdint.h:83
memrchr_P
const void * memrchr_P(const void *, int __val, size_t __len)
strpbrk_P
char * strpbrk_P(const char *__s, const char *__accept) __ATTR_PURE__
uint_farptr_t
uint32_t uint_farptr_t
Definition: inttypes.h:81
strcpy_P
char * strcpy_P(char *, const char *)
uint32_t
unsigned long int uint32_t
Definition: stdint.h:103
strncpy_PF
char * strncpy_PF(char *dest, uint_farptr_t src, size_t len)
Duplicate a string until a limited length.
strncasecmp_P
int strncasecmp_P(const char *, const char *, size_t) __ATTR_PURE__
Compare two strings ignoring case.
prog_char
char PROGMEM prog_char
Definition: pgmspace.h:162
strspn_P
size_t strspn_P(const char *__s, const char *__accept) __ATTR_PURE__
memccpy_P
void * memccpy_P(void *, const void *, int __val, size_t)
prog_uint16_t
uint16_t PROGMEM prog_uint16_t
Definition: pgmspace.h:252
strchrnul_P
const char * strchrnul_P(const char *, int __val)
strnlen_P
size_t strnlen_P(const char *, size_t)
Determine the length of a fixed-size string.
strncmp_P
int strncmp_P(const char *, const char *, size_t) __ATTR_PURE__
strcasestr_P
char * strcasestr_P(const char *, const char *) __ATTR_PURE__
strcat_P
char * strcat_P(char *, const char *)
uint64_t
unsigned long long int uint64_t
Definition: stdint.h:117
memchr_P
const void * memchr_P(const void *, int __val, size_t __len)
Scan flash memory for a character.
strncmp_PF
int strncmp_PF(const char *s1, uint_farptr_t s2, size_t n) __ATTR_PURE__
Compare two strings with limited length.
strsep_P
char * strsep_P(char **__sp, const char *__delim)
Parse a string into tokens.
strlen_PF
size_t strlen_PF(uint_farptr_t src)
Obtain the length of a string.
uint16_t
unsigned int uint16_t
Definition: stdint.h:93
prog_uint8_t
uint8_t PROGMEM prog_uint8_t
Definition: pgmspace.h:216
strnlen_PF
size_t strnlen_PF(uint_farptr_t src, size_t len)
Determine the length of a fixed-size string.
strcasecmp_PF
int strcasecmp_PF(const char *s1, uint_farptr_t s2) __ATTR_PURE__
Compare two strings ignoring case.
strlcat_P
size_t strlcat_P(char *, const char *, size_t)
Concatenate two strings.
strncasecmp_PF
int strncasecmp_PF(const char *s1, uint_farptr_t s2, size_t n) __ATTR_PURE__
Compare two strings ignoring case.
prog_int16_t
int16_t PROGMEM prog_int16_t
Definition: pgmspace.h:234