home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.17 / text0061.txt < prev    next >
Encoding:
Internet Message Format  |  1990-01-06  |  464 b 

  1. From: gwyn@BRL.MIL
  2.  
  3. In article <441@longway.TIC.COM> Andy Tanenbaum <uunet!cs.vu.nl!ast> writes:
  4. ->    char    d_name[1];
  5. -What happens when a program allocates a struct dirent in a program?  The
  6. -compiler will not allocate enough storage and it will crash when used.
  7.  
  8. That's what happens when programmers assume things that are not promised
  9. by the standards.
  10.  
  11. -Is it legal to add a line
  12. -#include <limits.h> 
  13. -in <dirent.h>?
  14.  
  15. NO.
  16.  
  17. Volume-Number: Volume 17, Number 70
  18.  
  19.  
  20.