Mail Archives: djgpp/1998/08/16/03:10:18
On Fri, 14 Aug 1998, Andris Pavenis wrote:
> #define FILE_NAME_ABSOLUTE_P(NAME) \
> (((NAME)[0] == '/') || ((NAME)[0] == '\\') || \
> ((isalpha(NAME)[0]) && ((NAME)[1]==':')))
>
> is even more better (we are excluding special symbols between
> 'Z' and 'a')
But that's just it: they should NOT be excluded. DOS supports up to 32
(not 26) drives, and at least Novell Netware indeed allows you to define
6 drives whose letters are between 'Z' and 'a'. Leaving them out would
introduce subtle bugs in very rare cases.
- Raw text -