INNER CODE UNIT · C
p
lh3/bedtk · bedtk.c:227
p = &r->a[r->n++];
p->l = rest? str.l - (rest - str.s) : 0;
if (rest) {
p->s = (char*)malloc(p->l + 1);
memcpy(p->s, rest, p->l);
p->s[p->l] = 0;
}
}
++k;
}
}
if (k > INT32_MAX)
fprintf(stderr, "WARNING: more than %d records; some functionality may not work!\n", INT32_MAX);
free(str.s);
ks_destroy(ks);
gzclose(fp);
return cr;
}