home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.23 / text0026.txt < prev    next >
Encoding:
Text File  |  1991-06-15  |  957 b   |  26 lines

  1. Submitted-by: decot@hpisod2.cup.hp.com (Dave Decot)
  2.  
  3. > To quote from the C standard, FILENAME_MAX:
  4. >     ... expands to an integral constant expression that is the size needed
  5. >     for an array of char large enough to hold the longest file name
  6. >     string that the implementation guarantees can be opened. [There's
  7. >     a footnote saying that this doesn't mean that just any string this
  8. >     long is a valid file name.]
  9.  
  10. They can footnote all they want; the text requires me to set FILENAME_MAX
  11. to the size of the longest filename I *guarantee* can be opened.
  12.  
  13. The length of that filename is 8, because I *guarantee* that the file
  14. "/dev/tty" can be opened.  Anything else, depends on what's on the system.
  15.  
  16. I wish the ANSI committee would stop insisting that the wording is entirely
  17. perfect in all respects and that therefore any unintended reading of the
  18. wording is stupidity on the part of the reader.
  19.  
  20. Dave
  21.  
  22.  
  23. Volume-Number: Volume 23, Number 27
  24.  
  25.