Utility for copying and renaming files.

Utility for copying and renaming files.

Revision:
1:1f1e0c92b3f8
Parent:
0:4be393eec2a2
Child:
2:361360b2f1c5
--- a/FileUtils.h	Mon Dec 30 20:36:41 2013 +0000
+++ b/FileUtils.h	Mon Dec 30 20:40:50 2013 +0000
@@ -6,16 +6,13 @@
 int fcopy (const char *src, const char *dst) { 
     FILE *fpsrc = fopen(src, "r");
     FILE *fpdst = fopen(dst, "w");
-    
     int ch = fgetc(fpsrc);
     while (ch != EOF) {
         fputc(ch, fpdst);  
         ch = fgetc(fpsrc);   
     }
-    
     fclose(fpsrc);  
-    fclose(fpdst);
-    
+    fclose(fpdst);   
     int retval = 0;
     fpdst = fopen(dst, "r");
     if (fpdst == NULL) {