Mail Archives: djgpp/1998/01/19/22:24:33
On 19 Jan 1998, Paul Derbyshire wrote:
> Flame me if I'm wrong, but isn't there a libc function for moving files?
It's called `rename'. It's even ANSI C. The DJGPP's version can move
entire directories (not across drives, though). One thing you should be
aware of is that, unlike other DOS implementations, it will overwrite the
destination, even if it is write-protected, because this is what POSIX
says.
There is also a simpler and more low-level `_rename'. Look them both up
in the libc reference.
- Raw text -