Query about <dirent.h>
gwyn at BRL.MIL
gwyn at BRL.MIL
Sat Nov 25 06:06:41 AEST 1989
From: gwyn at BRL.MIL
In article <441 at longway.TIC.COM> Andy Tanenbaum <uunet!cs.vu.nl!ast> writes:
-> char d_name[1];
-What happens when a program allocates a struct dirent in a program? The
-compiler will not allocate enough storage and it will crash when used.
That's what happens when programmers assume things that are not promised
by the standards.
-Is it legal to add a line
-#include <limits.h>
-in <dirent.h>?
NO.
Volume-Number: Volume 17, Number 70
More information about the Comp.std.unix
mailing list