| File and Path Functionint rename(const char *oldname, const char *newname);
 int _wrename(const wchar_t *oldname, const wchar_t *newname);
 int _trename(const TCHAR *oldname, const TCHAR *newname);
 Internationalization (I18n) Function OverviewThe renamefunction renames the file specified byoldnamewith the name specified bynewname, and returns0if successful. 
In the event of an error, the function returns a non-zero value and sets the global variableerrnowith the error number. On Windows platforms, _wrenameis the wide-character version ofrename;
its arguments are wide-character strings. There is no ANSI wide-character equivalent. _trenameis the Windows-only Generic version of the function; with the_MBCSor_UNICODEcompiler flags determining its mapping to eitherrenameor_wrename.
 I18n IssuesUse the appropriate version of the function as required for internationalization support. On ANSI UTF-16 platforms, use a conversion function to convert the 
wide-character string to a multibyte-character string and then call rename. See Pathnames for a discussion of path and filename considerations in 
an internationalized application. Recommended Replacements**If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.File and Path Functions 
               
 |