Nice little program!
I’ve never seen that ARGBEGIN / ARGEND macro before – any history on that code?
I’m not familiar with the exact history of the macro, I just know that it’s used in pretty much every utility in the suckless community. I think I’m in IRC with 20h right now, let me ask.
It’s from Plan 9.
Probably from plan 9 like 4ad said, I took it from suckless since it looks simple.
I have a tendency to get sucked into a project I’m working on and totally lose track of time, and then later lose interest. I think breaking things into bits and working a little at a time helps to prevent burnout and keep production up even with low motivation.
I don’t find this useful on general use, unless I really have lots of task at the same time and need to plan to use time to the most by separating tasks by chunks then probably yes.