From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b09acc9bf60e6cf6 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-02-17 16:16:42 PST Path: gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!think.com!paperboy.osf.org!paperboy.osf.org!dsb From: dsb@osf.org (David Boyce) Newsgroups: comp.unix.osf.osf1 Subject: Re: sscanf() bug - can't handle "0x" on hex conversions... Date: 18 Feb 1994 00:16:42 GMT Organization: Open Software Foundation Message-ID: References: <1994Feb16.142617.6610@porthos.cc.bellcore.com> NNTP-Posting-Host: ets7.osf.org In-reply-to: wws@sorcerer.isp.bellcore.com's message of Wed, 16 Feb 94 14:26:17 GMT >> I've been using the sscanf() function to convert a hex string to an >> integer, and I believe I've discovered a bug. The C Programming Language >> book I have says that scanf() should work "with or without leading 0x or 0X." >> That IS the case on AIX, but on OSF/1, it doesn't work unless I get rid of >> the leading 0x. Has anyone else run into this? >> Wayne This bug is known and was fixed in the OSF/1 reference source tree a year or two ago. Check with your vendor to see if it's in the current or next release. -- David Boyce dsb@osf.org 617-621-8963