Skip to content

Commit c618771

Browse files
committed
vcf.h:vcf_parse() add documentation
Add a comment to vcf_parse() to document that the input line must not end with a newline character.
1 parent fc93dfc commit c618771

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

htslib/vcf.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,10 @@ typedef struct {
313313
/** Writes VCF or BCF header */
314314
int bcf_hdr_write(htsFile *fp, bcf_hdr_t *h);
315315

316-
/** Parse VCF line contained in kstring and populate the bcf1_t struct */
316+
/**
317+
* Parse VCF line contained in kstring and populate the bcf1_t struct
318+
* The line must not end with \n or \r characters.
319+
*/
317320
int vcf_parse(kstring_t *s, const bcf_hdr_t *h, bcf1_t *v);
318321

319322
/** The opposite of vcf_parse. It should rarely be called directly, see vcf_write */

0 commit comments

Comments
 (0)