Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: wws@sorcerer.isp.bellcore.com (Wayne Scott)
Subject: sscanf() bug - can't handle "0x" on hex conversions...
Date: Wed, 16 Feb 94 14:26:17 GMT	[thread overview]
Message-ID: <1994Feb16.142617.6610@porthos.cc.bellcore.com> (raw)


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


                 reply	other threads:[~1994-02-16 14:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox