Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 208 Bytes

rename.md

File metadata and controls

9 lines (8 loc) · 208 Bytes

给文件改名,移动文件位置。

函数原型

#include <stdio.h>

int rename(const char *oldpath, const char *newpath);

返回值

成功返回0,失败返回-1,并设置相应errno。