Hi, it is kwon, that scanf in general is not that good as expected. E.g. in Borlandc++ 3.1 the scanf function caused a program hang when you scan for an integer and typed in characters. Simon __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools