avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] strlen() returns erroneous values


From: Parthasaradhi Nayani
Subject: Re: [avr-gcc-list] strlen() returns erroneous values
Date: Sat, 4 Jun 2005 19:02:00 -0700 (PDT)



--- Kitts <address@hidden> wrote:

> 
> Would it be possible to declare a string to be in
> flash memory? I can 
> modify my functions to accept strings from flash.

Yes it is possible to save strings in flash. Use the
PSTR modifier to store strings.


> 
> While i know that i can save strings during
> declaration itself to stay 
> within flash, can i do the same at the time of the
> function call?
> 
> Something like this...
> 
> length = strlen_P(PSTR("some string"));

Though I have never tried the above, I think it should
work.

Nayani P



                
__________________________________ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]