Mail Archives: djgpp-workers/2000/03/05/03:35:48
On Fri, 3 Mar 2000, Mariano Alvarez =?iso-8859-1?Q?Fern=E1ndez?= wrote:
> This, your program output:
> ----
> C:\PROGDJ>pr1 longfilename1.txt
> `longfilename1.txt' -> `C:\PROGDJ\LONGFILE.TXT'
>
> C:\PROGDJ>pr1 longfilename2.txt
> `longfilename2.txt' -> `C:\PROGDJ\LONGFILE.TXT'
>
> And this, the output of my routine:
> ----
> C:\PROGDJ>lfngsfn longfilename1.txt
> Long: longfilename1.txt
> Short: C:\PROGDJ\LONGFI~1.TXT
>
> C:\PROGDJ>lfngsfn longfilename2.txt
> Long: longfilename2.txt
> Short: C:\PROGDJ\LONGFI~2.TXT
> ----
> Do you see the difference?
Yes, you are right. _truename uses a slightly different system call,
which is not what you want.
(On my system, numeric tails are disabled, so the results of both
programs are identical. That's why I thought my method worked like
yours.)
- Raw text -