News for hackers. Stuff that matters.
Re:How Old School C Programmers Process Arguments by mveety on Sunday January 28, 2018 @12:52PM (#16252310)
No, this isn't clever at all. Its an optimization for when you need to write a lot of little utilities that need to parse arguments. It probably came out of a day of writing tools, and after the fifth time of rewriting that while/for loop someone got pissed and made that macro. I use this macro all the time on both 9front and unix because it makes parsing arguments trivial (and I don't use long options, but that's more because I'm a plan 9/unix extremist than for any technical reasons).

There are no comments on this comment yet.