I have to create a program with a system call and something is driving me nuts.
For some reason I get really odd results from a file with an odd number of characters:
48 struct stat buffer1;
49 fstat(d1, &buffer1);
50 size_t tot_bytes1 = buffer1.st_size;
51 char *buff1 =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.