|
memcpy memcpy_P memcpy with the source string in program space.
printf printf_P printf with the format string in program space.
puts puts_P puts with the string in program space.
scanf scanf_P scanf with the format string in program space.
sscanf sscanf_P sscanf with the format string in program space.
strcmp strcmp_P strcmp with the second string in program space.
strcpy strcpy_P strcpy with the second string in program space.
strerror strerror_P strerror with the error message returned in program space.
strlen strlen_P Returns the length of a string in program space.
strncmp strncmp_P strncmp with the second string in program space.strncpy strncpy_P strncpy with the second string in program space.
Можно и так:const char flash my_str []= "123";
void main (void)
{
typestr ((short)my_str) ;.
.
.
}void typestr (short p)
{
for (;;)
{
if (_LPM (p) == 0) break;
putbyte (_LPM(p++));
}
}
E-mail: info@telesys.ru