James [on his mailserver] wrote: > i'm writing a program which can accept switches to set various things in > the program, there will be several switches (all optional) which set > some conditions in my program to either ON or OFF. To process this i was > going to: [snip] I would suggest that you use either getopt() or getopt_long() to handle command-line processing. That way, you get consistency with all of the other GNU utilities. Even if you don't, I would recommend using ints rather than bitfields. Accessing a bitfield is slower than accessing an int, and the amount of memory involved is trivial unless you are dealing with a large number of such structures. -- Glynn Clements <[EMAIL PROTECTED]>