Use fputs() rather than puts() for printing final result from print().

puts() sillily adds an undesired newline.
This commit is contained in:
Matt Pharr
2012-06-28 12:29:40 -07:00
parent 6c7043916e
commit 3b2ff6301c

View File

@@ -171,7 +171,7 @@ void __do_print(const char *format, const char *types, int width, uint64_t mask,
done: done:
*bufp = '\0'; *bufp = '\0';
puts(printString); fputs(printString, stdout);
fflush(stdout); fflush(stdout);
} }