delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/05/08/10:55:06

Date: Thu, 8 May 2003 13:30:08 +0300 (EET DST)
From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
Sender: peuha AT sirppi DOT helsinki DOT fi
To: djgpp-workers AT delorie DOT com
Subject: Re: djtar and slightly weirdly formatted ZIPs, revision 2 [PATCH]
In-Reply-To: <2950-Tue06May2003201426+0300-eliz@elta.co.il>
Message-ID: <Pine.OSF.4.51.0305081316290.22618@sirppi.helsinki.fi>
References: <E19Bvwx-0000zi-00 AT phekda DOT freeserve DOT co DOT uk>
<Pine DOT OSF DOT 4 DOT 51 DOT 0305061421140 DOT 24402 AT sirppi DOT helsinki DOT fi>
<2950-Tue06May2003201426+0300-eliz AT elta DOT co DOT il>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 6 May 2003, Eli Zaretskii wrote:

> > These bytes should be printed with "%02x", not "%x" (else 0x0f0f will be
> > printed as 0xff)
>
> Don't you mean %2.2x?

These are equivalent, as you have discovered, but %02x is both shorter
and more explicit than %2.2x.

-- 
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019