My husband told me off for using puts an I was like "a) I don't wanna type an extra newline b) why the hell not, if it's good enough for gcc it's good enough for me".
Apparently it's like marginally slower than printf... oh no, whatever will I do!
But everyone knows all the cool kids use sys_write anyway.
puts isn't slower than printf lmao, it does a strlen() and then just writes it directly to stdout, there's not much you could do faster EXCEPT maybe using fwrite and using a constant string length
70
u/[deleted] Apr 25 '19
Fun fact: You can do this with zero width spaces if you use clang
Have fun with your invisible code, dumbass
25
u/KoboldCommando Apr 25 '19
This sub shortly after any joke trend catches on!
7
u/madiele Apr 26 '19
Should have done
alias reee="gcc -o"
reee ree ree.c
9
u/[deleted] Apr 25 '19
I'll be honest in all my years of programming I never knew c had a puts method.
11
u/bbvdzee Apr 25 '19
Btw I use Arch
12
u/littleprof123 Apr 25 '19
There's a language for this
1
u/LowB0b Apr 26 '19
alias reeeeeeeee "gcc ree.c -o ree && ./ree"1
u/LlamasOnTheRun Apr 25 '19
Can I get one but with the word “Hordor”
1
u/Chaseshaw Apr 26 '19
Is it a modem sound?