bcf_hdr_parse_line() - parse a single line of VCF textual header
@param h BCF header struct
@param line One or more lines of header text
@param len Filled out with length data parsed from 'line'.
@return bcf_hrec_t* on success;
NULL on error or on end of header text.
NB: to distinguish error from end-of-header, check *len:
*len == 0 indicates @p line did not start with "##"
*len == -1 indicates failure, likely due to out of memory
*len > 0 indicates a malformed header line
If *len > 0 on exit, it will contain the full length of the line
including any trailing newline (this includes cases where NULL was
returned due to a malformed line). Callers can use this to skip to
the next header line.
bcf_hdr_parse_line() - parse a single line of VCF textual header @param h BCF header struct @param line One or more lines of header text @param len Filled out with length data parsed from 'line'. @return bcf_hrec_t* on success; NULL on error or on end of header text. NB: to distinguish error from end-of-header, check *len: *len == 0 indicates @p line did not start with "##" *len == -1 indicates failure, likely due to out of memory *len > 0 indicates a malformed header line
If *len > 0 on exit, it will contain the full length of the line including any trailing newline (this includes cases where NULL was returned due to a malformed line). Callers can use this to skip to the next header line.