home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: decot@hpisod2.cup.hp.com (Dave Decot)
-
- > To quote from the C standard, FILENAME_MAX:
- >
- > ... expands to an integral constant expression that is the size needed
- > for an array of char large enough to hold the longest file name
- > string that the implementation guarantees can be opened. [There's
- > a footnote saying that this doesn't mean that just any string this
- > long is a valid file name.]
-
- They can footnote all they want; the text requires me to set FILENAME_MAX
- to the size of the longest filename I *guarantee* can be opened.
-
- The length of that filename is 8, because I *guarantee* that the file
- "/dev/tty" can be opened. Anything else, depends on what's on the system.
-
- I wish the ANSI committee would stop insisting that the wording is entirely
- perfect in all respects and that therefore any unintended reading of the
- wording is stupidity on the part of the reader.
-
- Dave
-
-
- Volume-Number: Volume 23, Number 27
-
-