3 ms·
Useless use of printf; what's wrong with "puts(str)"?
by rep_lodsb 2y ago
Useless use of printf; what's wrong with "puts(str)"?
- shawn_w 2y agoputs() adds a newline at the end. gcc will happily turn printf("%s\n", str) into puts(str), though. I've never tested to see if printf("%s", str) becomes the equivalent fputs(str, stdout)