user24146: Given:
const char* PROGMEM names[] = {"Foo","Bar"};
Serial.print(names[0]);

I get garbage output. Is there some function that will print the string from PROGMEM? E.G.:
Serial.print(<function name>(names[0]);


user53748: Among many others, check out pgmspace.h utilities at
AVR-libc

24146: <p>Given:</p>

<pre><code>const char* PROGMEM names[] = {"Foo","Bar"};
Serial.print(names[0]);
</code></pre>

<p>I get garbage output. Is there some function that will print the string from PROGMEM? E.G.:</p>

<pre><code>Serial.print(&lt;function name&gt;(names[0]);
</code></pre>
 53748: <p>Among many others, check out pgmspace.h utilities at
<a href="https://www.nongnu.org/avr-libc/user-manual/modules.html" rel="nofollow noreferrer">AVR-libc</a></p>
