From: "Jonathan Roewen" <jonathan.roewen@gmail.com>
To: "Oliver Bandel" <oliver@first.in-berlin.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] sprintf-Bug?
Date: Sun, 4 Feb 2007 15:11:29 +1300 [thread overview]
Message-ID: <ad8cfe7e0702031811l24893999reea7c6cd7a2273f5@mail.gmail.com> (raw)
In-Reply-To: <20070204020806.GA3918@first.in-berlin.de>
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 <oliver@first.in-berlin.de> 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
>
next prev parent reply other threads:[~2007-02-04 2:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-04 1:00 sprintf-Bug? Oliver Bandel
2007-02-04 1:11 ` [Caml-list] sprintf-Bug? Jonathan Roewen
2007-02-04 1:51 ` Oliver Bandel
2007-02-04 1:55 ` Jonathan Roewen
[not found] ` <45C53E45.1080109@rftp.com>
2007-02-04 2:08 ` Oliver Bandel
2007-02-04 2:11 ` Jonathan Roewen [this message]
2007-02-04 12:43 ` Oliver Bandel
2007-02-04 10:41 ` Christophe TROESTLER
[not found] <20070204020819.B999DBC6F@yquem.inria.fr>
2007-02-04 10:04 ` David Allsopp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ad8cfe7e0702031811l24893999reea7c6cd7a2273f5@mail.gmail.com \
--to=jonathan.roewen@gmail.com \
--cc=caml-list@inria.fr \
--cc=oliver@first.in-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).