The documentation for printf doesn't seem to specify that the function will always print a newline. And both print and printf documentation do not explain how to stop them from printing a newline.
I feel like this should be explained in the documentation. Also, how do you stop newline characters being added?