Path: utzoo!attcan!uunet!cs.utexas.edu!longway!std-unix From: gwyn@BRL.MIL Newsgroups: comp.std.unix Subject: Re: Query about Message-ID: <442@longway.TIC.COM> Date: 24 Nov 89 19:06:41 GMT References: <437@longway.TIC.COM> <438@longway.TIC.COM> <441@longway.TIC.COM> Sender: std-unix@longway.TIC.COM Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 17 Approved: jsq@longway.tic.com (Moderator, John S. Quarterman) From: gwyn@BRL.MIL In article <441@longway.TIC.COM> Andy Tanenbaum 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 -in ? NO. Volume-Number: Volume 17, Number 70