From owner-freebsd-hackers Tue Jun 17 00:28:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA29517 for hackers-outgoing; Tue, 17 Jun 1997 00:28:24 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id AAA29511 for ; Tue, 17 Jun 1997 00:28:21 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA00483 for hackers@FreeBSD.ORG; Tue, 17 Jun 1997 09:28:19 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id KAA07045; Sun, 15 Jun 1997 10:34:40 +0200 (MET DST) Message-ID: <19970615103440.PB32135@uriah.heep.sax.de> 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? References: <199706091452.AAA29091@genesis.atrad.adelaide.edu.au> <19970609223442.26371@keltia.freenix.fr> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <19970609223442.26371@keltia.freenix.fr>; from Ollivier Robert on Jun 9, 1997 22:34:42 +0200 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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. ;-)