Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!decwrl!ucbvax!CITHEX.CALTECH.EDU!carl From: carl@CITHEX.CALTECH.EDU.UUCP Newsgroups: mod.computers.vax Subject: Re: Potential C problem Message-ID: <860704084941.003@CitHex.Caltech.Edu> Date: Fri, 4-Jul-86 11:53:19 EDT Article-I.D.: CitHex.860704084941.003 Posted: Fri Jul 4 11:53:19 1986 Date-Received: Sat, 5-Jul-86 12:46:17 EDT References: <8606261652.AA25082@tektools.TEK> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 3 Approved: info-vax@sri-kl.arpa The problem is that sscanf is stripping leading zero's. When that's all you've got, it fails. By the way, I suspect you wanted to use the string "%1x" rather than "%x1" in your example, though both have the same problem.