INNER CODE UNIT · C

end

lh3/seqtk · seqtk.c:143

						end = atol(str->s);
						if (end < 0) end = -1;
					}
				}
			}
		}
		// skip the rest of the line
		if (dret != '\n') while ((dret = ks_getc(ks)) > 0 && dret != '\n');
		if (end < 0 && beg > 0) end = beg, beg = beg - 1; // if there is only one column
		if (beg < 0) beg = 0, end = INT64_MAX;
		if (p->n == p->m) {
			p->m = p->m? p->m<<1 : 4;
			p->a = realloc(p->a, p->m * 16);
		}
		p->a[p->n<<1] = (uint64_t)beg;
		p->a[p->n<<1|1] = (uint64_t)end;
		p->n++;
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…