Well, as tnosoes!tom was kind enough to point out, I didn't initialize reallyset if you did not supply the -s switch on the command line. Just make the declaration int reallyset=0; Bill