在linux系统纯c环境中:@H_502_4@
#include <stdio.h> //加载头文件@H_502_4@
int rename(const char *oldname,const char *newname); //函数声明@H_502_4@
举例使用:@H_502_4@
test.cpp、test.txt与home文件夹放在同一目录下,那么如果想通过test.cpp将test.txt放入home文件夹,@H_502_4@
则::@H_502_4@rename("test.txt",“home//test.txt");@H_502_4@