ANSI 4.9.4.2 The effect if a file with the new name exists prior to a call to the rename function
If you attempt to rename a file using a name that exists, the rename function fails and returns an error code.