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

  1. From: henry@utzoo.uucp
  2.  
  3. >From: Andy Tanenbaum <uunet!cs.vu.nl!ast>
  4. >I don't follow.  What is it that that the standards don't promise.  Surely
  5. >a programmer may declare a struct dirent...
  6.  
  7. That is exactly what is not promised:  that you can declare a `struct
  8. dirent' (as opposed to a `struct dirent *') that is of any use to you.
  9. The only use for `struct dirent' defined in 1003.1 is that readdir()
  10. returns a pointer to one, and that the thing that pointer points to has
  11. a member `d_name' that you can examine.  There is no promise that the
  12. type `struct dirent' is good for anything else whatsoever.
  13.  
  14.                                      Henry Spencer at U of Toronto Zoology
  15.                                  uunet!attcan!utzoo!henry henry@zoo.toronto.edu
  16.  
  17.  
  18. Volume-Number: Volume 17, Number 73
  19.  
  20.  
  21.