Mail Archives: djgpp/1998/06/09/12:31:15
On Mon, 8 Jun 1998 17:08:39 -0700, Nate Eldredge <nate AT cartsys DOT com>
wrote:
<...>
>If you set LFN=Y in the environment, all library functions will
>automagically understand long file names under Windows 95. This includes
>`rename', which appears to be what you want.
Actually, that was helpful, even though i guess I didn't phrase my
question well. I am enjoying compiling some long-named MSVC++ console
code with DJGPP now that I know this detail- thanks.
About my real issue: rename was indeed a good function call for what I
was looking for, and the other key ones seem to be (after much random
libc wanderings):
findfirst, findnext, and the rather worrisome "__file_exists." I am
relying pretty heavily on this __file_exists at the moment, and it
certainly looks good, and is easy, small and quick... one question,
though: can it reliably be expected to return "exists!" code also when
it finds a directory? So far, I'd say yes, from my experimentation.
But I definitely want to know for sure, and the docs don't really say
much about it. Also, if someone has any good reasons I shouldn't use
__file_exists, please let me know- I already know it isn't
particularly ANSI nor portable, but beside that...
Thanks!
- Raw text -