Date: Mon, 6 May 1996 09:54:07 +0200 (IST) From: Eli Zaretskii To: Arne Knut Roev Cc: djgpp AT delorie DOT com Subject: Re: Error in printf()-documentation (djgpp v2)... In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.