Durukan Bal

  • Home
  • Notes
  • Services
    • Bash – Get My Remote IP Address
    • Attack Videos
    • PHP – Basic Torrent Tracker Server
  • Social
    • Twitter
    • Linkedin
  • cv
  • Powered By Antpi.Net

C – rename() function example

Published by Durukan Bal on 17/01/202117/01/2021

#include <stdio.h>

int main () 
{
   int ret;
   
   ret = rename("oldname.txt", "newname.txt");
	
   if(ret == 0) 
   {
      printf("File renamed successfully");
   }
   else 
   {
      printf("Error: unable to rename the file");
   }
   
   return(0);
}
Categories: C language
Tags: examplefunction

29 Comments

Leave a Reply Cancel reply

Avatar placeholder

You must be logged in to post a comment.

Categories
  • Bash language
  • C language
  • DOS Attack
  • HTML
  • MySql language
  • PHP language
  • Scan And Search
  • Sniff
  • SQL Injection
Tags
example function list operators sample Syntax

Related Posts

C language

C – tmpnam() function example

C language

C – tmpfile() function example

C language

C – strtok() function example

  • Attack Videos
  • Home
  • Notes
Hestia | Developed by ThemeIsle