Mail Archives: djgpp/1997/01/21/02:33:43
On Sun, 19 Jan 1997, Colin W. Glenn wrote:
> | redir -e %4.err gcc -o %4.exe -l -Wall -v %4.c
Why do you put -l there? I think that is the source of your trouble.
Please remove it and try again, it should work.
> Well after examining the structure in DIR.H, I of course looked in the
> LIBC.INF for the syntax of printf()ing a unsigned long and changed my
> printf() statement to this:
>
> | printf("%U %s\n", f.ff_fsize, f.ff_name);
No, that's incorrect (please read the library reference about format
specifiers). The correct line should say this:
printf("%lu %s\n", f.ff_fsize, f.ff_name);
(note that %U and %u are NOT the same!).
- Raw text -