TA贡献1828条经验 获得超3个赞
使用rename函数函数原型:#include <stdio.h>int rename(const char *oldpath, const char *newpath);#include <fcntl.h> /* Definition of AT_* constants */#include <stdio.h>int renameat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath);
TA贡献1865条经验 获得超7个赞
列: 将test重命名为unfile
mv
test
unfile
网络编程32讲
¥ 58.00
Linux命令行与Shell脚本编程大全
¥ 68.00
举报