English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-02-04 (02:08)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] sprintf-Bug?
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?!