[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Pointers to strings
From: |
Keith Gudger |
Subject: |
Re: [avr-gcc-list] Pointers to strings |
Date: |
Mon, 8 Mar 2004 14:52:46 -0800 (PST) |
See the avr libc FAQ:
http://www.nongnu.org/avr-libc/user-manual/index.html
#14 in the FAQ.
#include <avr/pgmspace.h>
const char foo[] PROGMEM = "Foo";
const char bar[] PROGMEM = "Bar";
PGM_P array[2] PROGMEM = {
foo,
bar
};
On Mon, 8 Mar 2004, [iso-8859-2] Darek wrote:
> Hi,
>
> I'm trying to declare a table of pointers to strings in program memory.
> Construction
> char *menu[] PROGMEM={"a","b"}
> only declares a table in program space witch points into empty space
> (strings aren't there). What am I doing wrong?
>
> Darek
>
>
>
>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
>
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list