]> git.donarmstrong.com Git - fastq-tools.git/blobdiff - tests/cat_fastq.c
Much simpler faster code for parsing fastq files.
[fastq-tools.git] / tests / cat_fastq.c
diff --git a/tests/cat_fastq.c b/tests/cat_fastq.c
new file mode 100644 (file)
index 0000000..449ee5d
--- /dev/null
@@ -0,0 +1,21 @@
+
+#include "../src/parse.c"
+#include "../src/common.c"
+
+int main()
+{
+    seq_t* seq = seq_create();
+    fastq_t* f = fastq_create(stdin);
+
+    while (fastq_read(f, seq)) {
+        fastq_print(stdout, seq);
+    }
+
+    fastq_free(f);
+    seq_free(seq);
+
+    return EXIT_SUCCESS;
+}
+
+
+