9c40c2faada25fac2a15793b628c2606463efcde
[yaffs2.git] / direct / timothy_tests / linux_tests / rename.c
1 #include <stdio.h>
2 #include <errno.h>
3
4
5 int main()
6 {
7         int output=0;
8         int error_code =0 ;
9         output=rename( "/home/timothy/test/cat/","/home/timothy/test/dog/");
10         printf("output %d\n",output);
11         if (output <0 ) {
12                 error_code = errno;
13                 printf("error code %d\n",error_code);
14                 printf("Error description is : %s\n",strerror(errno));
15         }
16         return 0;
17 }