#include <cstdio> int rename( const char *oldfname, const char *newfname );
函式 rename() 將檔案 oldfname 的名稱更改為 newfname。rename() 函式在成功時返回零,在錯誤時返回非零值。