I think that the array char_name[] should have size 256 rather than 128 as given in the original article. (Better yet, omit the size and let the compiler determine the size.) d a dixon ihuxa!dixon