Mail Archives: djgpp/1996/05/06/00:54:51
akroev AT sn DOT no writes:
> I am using djgpp v2 while trying to learn C.
>
> While doing this, I needed to print out an int variable. I used
> printf("%d\n", intvariable), remembering to #include <stdio.h>,
> but I got the warning "Wrong format specifier...", so I looked
> up the Info.
>
> The Info-file on libc.a told me to use "%D" as format specifier
> for a long int variable (since ints are equal to long ints in
> djgpp).
%ld
Hope this helps
Cheers,
Rob
- Raw text -