Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We now use puts instead of printf. puts does not try to insert any values into the string, and it supplies the terminating newline (the \n you saw before) for us.

I don't see how "does not try to insert any values into the string" and "supplies the terminating newline" are not contradictory.



It writes the whole string as passed, without inserting anything into it, and then writes the newline.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: