Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 8 Nov 2002 08:26:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 8 Nov 2002 08:26:55 -0500 Received: from ns1.triode.net.au ([202.147.124.1]:59091 "EHLO iggy.triode.net.au") by vger.kernel.org with ESMTP id ; Fri, 8 Nov 2002 08:26:55 -0500 Message-ID: <3DCBBCDA.3050203@torque.net> Date: Sat, 09 Nov 2002 00:32:10 +1100 From: Douglas Gilbert Reply-To: dougg@torque.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 X-Accept-Language: en-us, en MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: sscanf("-1", "%d", &i) fails, returns 0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 384 Lines: 11 In lk 2.5.46-bk3 the expression in the subject line fails to write into "i" and returns 0. Drop the minus sign and it works. Doug Gilbert - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/