[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] printf'ing a string in program memory
From: |
E. Weddington |
Subject: |
Re: [avr-gcc-list] printf'ing a string in program memory |
Date: |
Fri, 12 Dec 2003 09:19:48 -0700 |
On 12 Dec 2003 at 10:14, Joerg Wunsch wrote:
<snip>
> So the correct way would be to use an upper-case conversion specifier
> or modifier. The letters that are available are B, C, D, H..K, M..W,
> Y, Z.
>
> The first idea is to use %S, but then, if it comes to EEPROM strings,
> what next? I'm more tempted to use %Ps (mnemonic: progmem string) or
> %Cs (constant string) for flash, maybe %Zs for EEPROM strings.
> --
My 2 cents: I prefer %Ps for strings in progmem as it stays consistent with
the naming of the various progmem functions: func_P()
Eric