![]() |
![]()
| ![]() |
![]()
NAMEbl_fastx_init() - Initialize a FASTX object LIBRARY#include <biolibc/fasta.h> -lbiolibc -lxtend SYNOPSISvoid bl_fastx_init(bl_fastx_t *record, FILE *fastx_stream) ARGUMENTSrecord Pointer to the bl_fastx_t structure to initialize. DESCRIPTIONInitialize 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. EXAMPLESbl_fastx_t rec = BL_FASTX_INIT; bl_fastx_init(&rec); bl_fastx_read(stdin, &rec); bl_fastx_free(&rec); SEE ALSObl_fastx_read(3), bl_fastx_write(3)
|