Archived
3
0
This commit is contained in:
lapupe 2016-09-18 01:06:23 +02:00
parent 7d237ad87c
commit 35778c0b9b

View File

@ -18,10 +18,11 @@ int file_write (const char *path, const char *buf, size_t msize)
perror ("file_write");
return ER_FILE_OPEN;
}
// TODO debug
// printf("file_write: opened file %s\n", path);
int ret = 0;
int ret2 = 0;
printf ("%ld bytes to write\n", msize);
ret = write (fd, buf, msize);
if (ret <= 0) {
fprintf (stderr, "err: written %s\n", path);