summaryrefslogtreecommitdiff
path: root/direct/timothy_tests/linux_tests/rename.c
diff options
context:
space:
mode:
Diffstat (limited to 'direct/timothy_tests/linux_tests/rename.c')
-rw-r--r--direct/timothy_tests/linux_tests/rename.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/direct/timothy_tests/linux_tests/rename.c b/direct/timothy_tests/linux_tests/rename.c
new file mode 100644
index 0000000..9c40c2f
--- /dev/null
+++ b/direct/timothy_tests/linux_tests/rename.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <errno.h>
+
+
+int main()
+{
+ int output=0;
+ int error_code =0 ;
+ output=rename( "/home/timothy/test/cat/","/home/timothy/test/dog/");
+ printf("output %d\n",output);
+ if (output <0 ) {
+ error_code = errno;
+ printf("error code %d\n",error_code);
+ printf("Error description is : %s\n",strerror(errno));
+ }
+ return 0;
+}