Specifications
CAVR-4
252
AVR–specific library functions
AVR® IAR C/C++ Compiler
Reference Guide
strcpy_P char * strcpy_P(char *s1, PGM_P s2);
Identical to strcpy except that the string s2 being copied is in flash memory, not in data
memory. This function is available in both the CLIB and the DLIB library.
strerror_P PGM_P strerror_P(int errnum);
Identical to strerror except that the string returned is in flash memory, not in data
memory. This function is available in both the CLIB and the DLIB library.
strlen_G size_t strlen_G(const char __generic *s);
Identical to strlen except that the string being tested can be in flash or data memory.
This function is only available in the DLIB library.
strlen_P size_t strlen_P(PGM_P s);
Identical to strlen except that the string being tested is in flash memory, not in data
memory. This function is available in both the CLIB and the DLIB library.
strncat_G char *strncat_G(char *s1, const char __generic *s2, size_t n);
Identical to strncmp except that the string s2 can be in flash or data memory. This
function is only available in the DLIB library.
strncmp_G int strncmp_G(const char *s1, const char __generic *s2, size_t n);
Identical to strncmp except that the string s2 can be in flash or data memory. This
function is only available in the DLIB library.
strncmp_P int strncmp_P(const char *s1, PGM_P s2, size_t n);
Identical to strncmp except that the string s2 is in flash memory, not in data memory.
This function is available in both the CLIB and the DLIB library.
strncpy_G char *strncpy_G(char *s1, const char __generic *s2, size_t n);
Identical to strncpy except that the source string s2 can be in flash or data memory.
This function is only available in the DLIB library.