Mail Archives: djgpp/1996/05/06/02:58:17
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 -