Mail Archives: djgpp/1998/02/26/06:47:55
On Thu, 26 Feb 1998, Vik Heyndrickx wrote:
> the internal DOS' truename already does this automagically.
That call is similar, but not identical, to `_fixpath'. For example, it
will return a UNC (which DJGPP libc generally doesn't support), whereas
`_fixpath' will keep the usual DOS "d:/path" format. It will also return
a long name (if LFN are supported) whereas `_fixpath' doesn't change the
parts of the name which are present in the original name. `_truename'
returns the name with DOS-style backslashes, while `_fixpath' converts
them to forward slashes. There are cases where you need the former, and
there are places where the latter is better.
IMHO, both these finctions canonicalize file names, only a bit
differently.
> A funny thing I discovered is that "prn" is converted to "x:/dev/lpt1"
Not for me, it doesn't. Please post a short code fragment to show this.
- Raw text -