From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 868EFBC0A for ; Sun, 4 Feb 2007 03:11:31 +0100 (CET) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.228]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l142BU9R021759 for ; Sun, 4 Feb 2007 03:11:31 +0100 Received: by nz-out-0506.google.com with SMTP id l8so1298677nzf for ; Sat, 03 Feb 2007 18:11:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jhP1g4lpaTQ/bhBOpmg8PCaQne9O1aapypfh1dvcyIv6HF9G4Ept+GufiAvOTsaZTQkCcmwE9txRB8OVuxsGJ4PaLwoV+/1Ean2cmXCG9Fvznjn2auaW39yyId2jxAS1uGDuixfkky89fjk3kCpJuA6WzJQD+QnzbME9Va2c1Ms= Received: by 10.114.58.1 with SMTP id g1mr491460waa.1170555089745; Sat, 03 Feb 2007 18:11:29 -0800 (PST) Received: by 10.115.107.15 with HTTP; Sat, 3 Feb 2007 18:11:29 -0800 (PST) Message-ID: Date: Sun, 4 Feb 2007 15:11:29 +1300 From: "Jonathan Roewen" To: "Oliver Bandel" Subject: Re: [Caml-list] sprintf-Bug? Cc: caml-list@inria.fr In-Reply-To: <20070204020806.GA3918@first.in-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070204010040.GC3829@first.in-berlin.de> <20070204015122.GA3882@first.in-berlin.de> <45C53E45.1080109@rftp.com> <20070204020806.GA3918@first.in-berlin.de> X-j-chkmail-Score: MSGID : 45C540D2.003 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 45C540D2.003 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bandel:01 in-berlin:01 bandel:01 sprintf:01 beginner's:01 ocaml:01 bug:01 beginners:01 wrote:01 wrote:01 oliver:01 oliver:01 caml-list:01 caml-list:01 bin:01 No. Padding for strings only adds spaces. It's the design. You can check the manual if you want. Padding with zeroes applies solely to numerical conversions. On 2/4/07, Oliver Bandel wrote: > On Sat, Feb 03, 2007 at 06:00:37PM -0800, Robert Roessler wrote: > > Oliver Bandel wrote: > > >... > > >Or how to make hex-output with filling '0' instead > > >of ' ' for two-char length strings? > > > > > >Would a "%00X" work?! > > > > Nope, just use "%02X". > [...] > > > Oh, cool. > > I thought I had already tried it and it didn't worked. > But I just tried it at my Mac and it did work this way. > > I will try this again on the Sun next week, where I > thought that I already tried it and it didn't worked... > > ( ...but maybe I was tired only ;-) and typed something stupid ;-) ) > > > But why didn't worked the code with the two sprintf's?! > The outer sprintf should have do what I was looking for?! > > Thanks, > Oliver > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >