Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* sscanf() bug - can't handle "0x" on hex conversions...
@ 1994-02-16 14:26 Wayne Scott
  1994-02-18  0:16 ` David Boyce
  0 siblings, 1 reply; 2+ messages in thread
From: Wayne Scott @ 1994-02-16 14:26 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sscanf() bug - can't handle "0x" on hex conversions...
  1994-02-16 14:26 sscanf() bug - can't handle "0x" on hex conversions Wayne Scott
@ 1994-02-18  0:16 ` David Boyce
  0 siblings, 0 replies; 2+ messages in thread
From: David Boyce @ 1994-02-18  0:16 UTC (permalink / raw)


>>         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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-02-18  0:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-16 14:26 sscanf() bug - can't handle "0x" on hex conversions Wayne Scott
1994-02-18  0:16 ` David Boyce

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