[Top][All Lists]

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

Re: [avr-libc-dev] Printf %S printing from PROGMEM not functional, compi

From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Printf %S printing from PROGMEM not functional, compiler error
Date: Sat, 10 Mar 2018 17:01:22 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

As address@hidden wrote:

> But I get the following compiler error:
> error: format '%S' expects argument of type 'wchar_t*', but argument 2
> has type 'const char*' [-Werror=format=]
> printf("%S:%u\n", name, i);

Then do as suggested, and turn off compiler warnings (and -Werror) for

> And "just for fun" I would like to know how to print wide characters

You can't.  avr-libc doesn't implement wide chars in any way.
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

Never trust an operating system you don't have sources for. ;-)

reply via email to

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