From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,b09acc9bf60e6cf6,start X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,b09acc9bf60e6cf6,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-02-16 06:26:17 PST Xref: gmd.de comp.unix.osf.osf1:2260 comp.unix.osf.misc:1006 Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc Path: gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!cs.utexas.edu!swrinde!sgiblab!pacbell.com!att-out!walter!porthos!sorcerer.isp.bellcore.com!wws From: wws@sorcerer.isp.bellcore.com (Wayne Scott) Subject: sscanf() bug - can't handle "0x" on hex conversions... Reply-To: wws@cc.bellcore.com Organization: Bellcore Date: Wed, 16 Feb 94 14:26:17 GMT Message-ID: <1994Feb16.142617.6610@porthos.cc.bellcore.com> X-Newsreader: mxrn 6.18-6 Sender: netnews@porthos.cc.bellcore.com (USENET System Software) Hi Folks: 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