layout
This commit is contained in:
parent
1f38fcdc74
commit
760db962ea
12 changed files with 273 additions and 154 deletions
|
|
@ -1,21 +0,0 @@
|
|||
#include <MDE/Core/File.h>
|
||||
|
||||
void MDEFileCopy(const char* src, const char* dst) {
|
||||
char buffer[4096];
|
||||
FILE* in;
|
||||
FILE* out;
|
||||
int r;
|
||||
if((in = fopen(src, "rb")) == NULL) return;
|
||||
if((out = fopen(dst, "wb")) == NULL) {
|
||||
fclose(in);
|
||||
return;
|
||||
}
|
||||
|
||||
do {
|
||||
r = fread(buffer, 1, sizeof(buffer), in);
|
||||
fwrite(buffer, 1, r, out);
|
||||
} while(r == sizeof(buffer));
|
||||
|
||||
fclose(in);
|
||||
fclose(out);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue