#include <stdio.h> int main(int argc, char *argv[]) { if(rename("oldName", "newName") != 0){ printf("Rename Error"); } return 0; }