6 int parse_url_info(const char *url, struct url_info *info) {
19 memcpy(info->author, url, len);
20 info->author[len] = 0;
21 info->contents |= URL_INFO_AUTHOR;
23 if (c == NULL || c[1] == 0)
24 return info->contents;
26 info->record = strtoull(c + 1, NULL, 10);
27 info->contents |= URL_INFO_RECORD;
30 if (c == NULL || c[1] == 0)
31 return info->contents;
33 info->record_to = strtoull(c + 1, NULL, 10);
34 info->contents |= URL_INFO_RECORD_TO;
36 return info->contents;
39 uint64_t *make_sequential_list(uint64_t from, uint64_t to) {
40 uint64_t len = to - from + 1;
41 uint64_t *list = malloc(len * sizeof(uint64_t));
44 for (i = 0; i < len; i++) {