www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/06/02:58:17

Date: Mon, 6 May 1996 09:54:07 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Arne Knut Roev <akroev AT sn DOT no>
Cc: djgpp AT delorie DOT com
Subject: Re: Error in printf()-documentation (djgpp v2)...
In-Reply-To: <ZoSjxg8CVolV090yn@sn.no>
Message-Id: <Pine.SUN.3.91.960506094858.13129O-100000@is>
Mime-Version: 1.0

On 6 May 1996, Arne Knut Roev wrote:

> So, what is the _correct_ format specifier to use in printf() for a
> long int

For an int use "%d" (why it didn't work for you is a mystery until you 
post a fragment that actually triggers the error message).

For a long int use "%ld".  And no, you shouldn't treat ints and longs the 
same here, because not every compiler defines them to be the same width.

> and are there more errors (_known_ errors, that is) in the
> documentation ?

Yes.

- Raw text -


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