Talk:Word count (C)

From LiteratePrograms
Jump to: navigation, search

[edit] Loop rearrangement

I have split the argument processing loop in two. This allows the option defaults check-and-set to be performed once, instead of every time print is called. It also prevents the user from interspersing options between filenames. The previous version allowed this interspersing, which:

  1. did not match the usage description
  2. more importantly, allowed option settings to change as files are being processed, whcih seems (to me at least) wrong

Hope these changes are ok. If the capability to intersperse options and filenames is still desirable, perhaps we should look at using "getopts". --Allan McInnes (talk) 11:05, 10 May 2006 (PDT)

That's fine with me. There is probably no point in having different options for each file, and for that to work, there should be a way to turn off options. Thanks for fixing it. Ahy1 12:20, 10 May 2006 (PDT)
hijacker
hijacker
hijacker
hijacker