From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/225 Path: news.gmane.org!not-for-mail From: Solar Designer Newsgroups: gmane.linux.lib.musl.general Subject: Re: cluts comments Date: Wed, 3 Aug 2011 21:09:24 +0400 Message-ID: <20110803170924.GA9158@openwall.com> References: <20110803170406.GP29562@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1312391372 11590 80.91.229.12 (3 Aug 2011 17:09:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2011 17:09:32 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-309-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 03 19:09:28 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Qoewh-0001M5-19 for gllmg-musl@lo.gmane.org; Wed, 03 Aug 2011 19:09:27 +0200 Original-Received: (qmail 32425 invoked by uid 550); 3 Aug 2011 17:09:26 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32417 invoked from network); 3 Aug 2011 17:09:26 -0000 Content-Disposition: inline In-Reply-To: <20110803170406.GP29562@port70.net> User-Agent: Mutt/1.4.2.3i Xref: news.gmane.org gmane.linux.lib.musl.general:225 Archived-At: On Wed, Aug 03, 2011 at 07:04:07PM +0200, Szabolcs Nagy wrote: > i've reported these on irc, but luka was not there > so before i forget: Thank you for your help with this! > i've seen mixed use of %i and %d in printf > i had to look up the difference (nothing) > i recommend using only one of them consistently > (i prefer %d) I second this. Luka - please use %d consistently. There's a difference for scanf, but not for printf, and the convention is to use %d with printf. Alexander