[packages/ntp] - fix compile error

Jakub Bogusz qboosh at pld-linux.org
Mon Aug 3 16:07:28 CEST 2015


On Mon, Aug 03, 2015 at 03:08:17PM +0200, Adam Osuchowski wrote:
> Elan Ruusamäe wrote:
> > such stdlib changes can be actually written with puts:
> >
> > puts(Unity.XFAILMessage);
> > or sometimes:
> > fputs(Unity.XFAILMessage, stderr);
> 
> As you wish...

puts adds newline, so puts(str) is equivalent of printf("%s\n", str),
but printf(str).

You can replace printf(str) with fputs(str, stdout).
(fputs doesn't add newline)


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list