A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../../../cpp/io/c/rename.html below:

std::rename - cppreference.com

int rename( const char* old_filename, const char* new_filename );

Changes the filename of a file. The file is identified by character string pointed to by old_filename. The new filename is identified by character string pointed to by new_filename.

If new_filename exists, the behavior is implementation-defined.

[edit] Parameters old_filename - pointer to a null-terminated string containing the path identifying the file to rename new_filename - pointer to a null-terminated string containing the new path of the file [edit] Return value

​0​ upon success or non-zero value on error.

[edit] Notes

POSIX specifies many additional details on the semantics of this function, which are reproduced in C++ by std::filesystem::rename.

[edit] Example [edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4