[En-Nut-Discussion] Putting strings etc transparent into PROGMEM
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Fri Oct 23 11:32:53 CEST 2009
Hello,
some days ago I proposed to put os_version_string into progmem, when
progmem is available, like
+#ifdef PROGMEM
+static CONST char os_version_string[] PROGMEM
+#else
+static CONST char os_version_string[]
+#endif
+ = "4.9.7.0";
Would this be transparent for a usage like
./nut/pro/httpd.c: fprintf_P(stream, fmt_P, HTTP_MAJOR_VERSION, HTTP_MINOR_VERSION, status, title, NutVersionString());
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list