summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cb34c4d)
size_t len = MIN(sizeof(buf), (size_t)size);
if (kfile_read(src, buf, len) != len)
break;
size_t len = MIN(sizeof(buf), (size_t)size);
if (kfile_read(src, buf, len) != len)
break;
size_t wr_len = kfile_write(dst, buf, len);
cp_len += wr_len;
size -= len;
size_t wr_len = kfile_write(dst, buf, len);
cp_len += wr_len;
size -= len;
if (wr_len != len)
break;
}
if (wr_len != len)
break;
}
/**
* Copy \a size bytes from file \a src to \a dst.
/**
* Copy \a size bytes from file \a src to \a dst.
* \param src Source KFile.
* \param dst Destionation KFile.
* \param size number of bytes to copy.
* \param src Source KFile.
* \param dst Destionation KFile.
* \param size number of bytes to copy.