Code Snippets C

#include
int main(void)
{
if(rename("myfile.txt", "yourfile.txt"))
printf("Rename failed.\n");
else
printf("Rename successful.\n");
return 0;
}