#include <biolibc/fasta.h>
-lbiolibc -lxtend
void bl_fastx_init(bl_fastx_t *record, FILE *fastx_stream)
record Pointer to the bl_fastx_t structure to initialize.
Initialize a bl_fastx_t structure by peaking at the first character of the
description string to determine whether the stream is FASTA or FASTQ, and then
initializing the appropriate structure within the bl_fastx_t structure. This
must be done before passing it to bl_fastx_read() for the first time, so that
bl_fastx_read() will know to allocate memory for the fields.
bl_fastx_t rec = BL_FASTX_INIT;
bl_fastx_init(&rec);
bl_fastx_read(stdin, &rec);
bl_fastx_free(&rec);
bl_fastx_read(3), bl_fastx_write(3)