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