-int bcf_hdr_cpy(bcf_hdr_t *h, const bcf_hdr_t *h0)
-{
- *h = *h0;
- h->name = malloc(h->l_nm);
- h->sname = malloc(h->l_smpl);
- h->txt = malloc(h->l_txt);
- memcpy(h->name, h0->name, h->l_nm);
- memcpy(h->sname, h0->sname, h->l_smpl);
- memcpy(h->txt, h0->txt, h->l_txt);
- bcf_hdr_sync(h);
- return 0;
-}
-
-int bcf_hdr_read(bcf_t *b)