It is so stupendously hard to use scanf() safelythe best thing is probably to just delete it :-) David-Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UKRegistration No: 1397386 (Wales)