Hi, well I was trying to write a simple, small program that copy files.
The code is this:
But when I copy the files some random chars get added at the end of the destination file.
int main(int argc, char** argv)
if (argc < 3)
printf("Not enought arguments supplied.");
printf("Source file does not exist.");
Anyone knows what's wrong?
Oh, another question: What's the library for exit()?