News for hackers. Stuff that matters.
Re:Implementations of Cat(1) from Various Sources (2018) by ygra on Sunday January 19, 2020 @02:08AM (#22089918)
Re:Implementations of Cat(1) from Various Sources (2018) by henesy on Sunday January 19, 2020 @02:32AM (#22089996)
Re:Implementations of Cat(1) from Various Sources (2018) by Someone on Sunday January 19, 2020 @11:09AM (#22092104)
Also used in the beautiful (for those who like being creative with the preprocessor) options parser https://9fans.github.io/plan9port/man/man3/arg.html
Re:Implementations of Cat(1) from Various Sources (2018) by g82918 on Sunday January 19, 2020 @03:24AM (#22090174)
Thank you, that bit was very interesting. I like the idea for single threaded applications of having argv0 be a global.
Re:Implementations of Cat(1) from Various Sources (2018) by sherincall on Sunday January 19, 2020 @07:04AM (#22090945)
Doesn't have to be single-threaded even. Main writes the pointer at the start, and no one else is going to change it, just read from it.