by lynx97 · 1y ago · 0 comments
> puts() writes the string s and a trailing newline to stdout.
int main() { puts("Hello World!"); }
return 0;https://godbolt.org/z/zcqa4Txen
But I agree, using printf for constant strings is one step away from doing printf(x) which is a big no-no.
But if you're still using raw libc in 2025 that's a problem you willingly opted into. I have zero sympathy.