Advertisement
Guest User

Untitled

a guest
Jul 14th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. while (size > 0) {
  2. result = ffurl_read(nodes[i].uc, buf, size);
  3. if (result < 0)
  4. return total ? total : result;
  5. if (!result) {
  6. printf("FILE=%s\n", nodes[i].uc->filename);
  7. if (i + 1 == data->length ||
  8. ffurl_seek(nodes[++i].uc, 0, SEEK_SET) < 0)
  9. break;
  10. }
  11. total += result;
  12. buf += result;
  13. size -= result;
  14. }
  15. data->current = i;
  16. return total;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement