lyx_mirror/src/support/rename.C
Lars Gullik Bjønnes d6665cba42 get rid of dead code, some new functions constify variables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1041 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-26 13:54:57 +00:00

16 lines
272 B
C

#include <config.h>
#include <cstdio>
#include "support/lyxlib.h"
bool lyx::rename(char const * from, char const * to)
{
return ::rename(from, to) != -1;
}
bool lyx::rename(string const & from, string const & to)
{
return ::rename(from.c_str(), to.c_str()) != -1;
}