#include <biolibc/fastq.h>
-lbiolibc -lxtend
int bl_fastq_write(bl_fastq_t *record, FILE *fastq_stream, size_t max_line_len)
fastq_stream FILE stream to which data are written
record Pointer to a bl_fastq_t structure to be written
max_line_len Maximum length of a sequence line in output
Write a FASTQ record to the specified FILE stream, writing at most max_line_len
sequence characters per line. The special value BL_FASTQ_LINE_UNLIMITED
indicates no line length limit.
BL_WRITE_OK upon success, BL_WRITE_FAILURE if a write error occurs.
bl_fastq_t rec = BL_FASTQ_INIT;
while ( bl_fastq_read(stdin, &rec) != BL_READ_EOF )
bl_fastq_write(stdout, &rec, BL_FASTQ_LINE_UNLIMITED);
bl_fastq_free(&rec);
bl_fastq_read(3), bl_fastq_read(3), bl_fastq_write(3),