文章目录 一、函数定义 1.1 函数的简单说明 二、实例 2.1 文件重命名 2.2 (文件重命名)运行结果 2.3 文件移动并重命名(验证) 2.4 (文件移动并重命名)运行结果 一、函数定义 #include <stdio.h> int rename(const char *oldpath, const char *newpath); #include <fcntl.h> /* Definition of AT_* constants */ #include <stdio.h> int renameat(int olddirf