Re: [hatari-devel] Hatari Windows 2.4.1 release and PortMidi?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Eero Tamminen schrieb:

Another half of the patch is doing code changes like this:
-    printf(prompt);
+    printf("%s",prompt);

Why not replace printf() with puts(), if no formatting is needed?

Because puts() always writes a newline. Presumably you could use
fputs(prompt, stdout).

Regards
Christian
--
Christian Zietz  -  CHZ-Soft  -  czietz@xxxxxxx
WWW: https://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/