X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fparse.c;h=8a6123e9b97f14e6818421e8d2a9f06303fad78c;hb=a7a328a691ab370ed7fd61c9c04af9def02395d5;hp=e27a3859ebdb24a6a9b7406fa0f9218d64b40e99;hpb=d6b81119e55cf77c1e4c17b9e9026abc01e22b96;p=fastq-tools.git diff --git a/src/parse.c b/src/parse.c index e27a385..8a6123e 100644 --- a/src/parse.c +++ b/src/parse.c @@ -166,6 +166,14 @@ bool fastq_read(fastq_t* f, seq_t* seq) } +void fastq_rewind(fastq_t* f) +{ + rewind(f->file); + f->next = f->buf; + f->readlen = 0; +} + + void fastq_print(FILE* fout, const seq_t* seq) { fprintf(fout, "@%s\n%s\n+%s\n%s\n",