home | help
bl_fastx_init(3)	    Library Functions Manual		bl_fastx_init(3)

NAME
     bl_fastx_init() - Initialize a FASTX object

LIBRARY
     #include <biolibc/fasta.h>
     -lbiolibc -lxtend

SYNOPSIS
     void    bl_fastx_init(bl_fastx_t *record, FILE *fastx_stream)

ARGUMENTS
     record  Pointer to the bl_fastx_t structure to initialize.

DESCRIPTION
     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 struc-
     ture.  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.

EXAMPLES
     bl_fastx_t  rec = BL_FASTX_INIT;

     bl_fastx_init(&rec);
     bl_fastx_read(stdin, &rec);
     bl_fastx_free(&rec);

SEE ALSO
     bl_fastx_read(3), bl_fastx_write(3)

								bl_fastx_init(3)

home | help