Obsolete
/
libipc-old
Archived
3
0
Fork 0
more_to_read
lapupe 2016-09-18 01:06:23 +02:00
parent 7d237ad87c
commit 35778c0b9b
1 changed files with 3 additions and 2 deletions

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);