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=0.0 required=5.0 tests=none 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 0AA6FBC0A for ; Sun, 4 Feb 2007 03:08:14 +0100 (CET) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1428Dqi021125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sun, 4 Feb 2007 03:08:13 +0100 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from first (dslb-088-073-125-126.pools.arcor-ip.net [88.73.125.126]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id l1428CTR021774 for ; Sun, 4 Feb 2007 03:08:12 +0100 Received: by first (Postfix, from userid 501) id A265836A81A; Sun, 4 Feb 2007 03:08:06 +0100 (CET) Date: Sun, 4 Feb 2007 03:08:06 +0100 From: Oliver Bandel To: caml-list@inria.fr Subject: Re: [Caml-list] sprintf-Bug? Message-ID: <20070204020806.GA3918@first.in-berlin.de> References: <20070204010040.GC3829@first.in-berlin.de> <20070204015122.GA3882@first.in-berlin.de> <45C53E45.1080109@rftp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45C53E45.1080109@rftp.com> User-Agent: Mutt/1.5.6i X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Miltered: at concorde with ID 45C5400D.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bandel:01 in-berlin:01 bandel:01 sprintf:01 wrote:01 wrote:01 oliver:01 oliver:01 caml-list:01 strings:01 typed:03 nope:08 feb:09 maybe:10 tired:87 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