4 KSEQ_INIT(gzFile
, gzread
)
6 int main(int argc
, char *argv
[])
12 fprintf(stderr
, "Usage: %s <in.fasta>\n", argv
[0]);
15 fp
= gzopen(argv
[1], "r");
17 while ((l
= kseq_read(seq
)) >= 0) {
18 printf("name: %s\n", seq
->name
.s
);
19 if (seq
->comment
.l
) printf("comment: %s\n", seq
->comment
.s
);
20 printf("seq: %s\n", seq
->seq
.s
);
21 if (seq
->qual
.l
) printf("qual: %s\n", seq
->qual
.s
);
23 printf("return value: %d\n", l
);