Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jun 1997 10:34:40 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        hackers@FreeBSD.ORG
Subject:   Re: %i conversion in sscanf?
Message-ID:  <19970615103440.PB32135@uriah.heep.sax.de>
In-Reply-To: <19970609223442.26371@keltia.freenix.fr>; from Ollivier Robert on Jun 9, 1997 22:34:42 %2B0200
References:  <199706091452.AAA29091@genesis.atrad.adelaide.edu.au> <19970609223442.26371@keltia.freenix.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
As Ollivier Robert wrote:

> Interesting:
> 
> 244 [22:29] roberto@keltia:~> perl -e 'print 0xABCDEF45 . "\n"'
> 2882400069

Hexadecimal constants are always considered unsigned.  Garrett
recently pointed this out for the C case, and i assume Perl is just
doing it similar.

Too bad that scanf is not consistent with this.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970615103440.PB32135>