logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

read_allocate, read_deallocate - Allocate and deallocate the Read structure.

Description

       These  functions  create  and destroy Read structures. The Read structure is a generalised in-memory data
       structure used for holding trace data information.

       read_allocate() creates a Read structure  large  enough  to  hold  num_points  trace  sample  points  and
       num_bases  called bases. The allocated data is then initialised to appropriate defaults, which are mainly
       zeros and null pointers.

       read_deallocate() destroys a previously created Read structure. It is not sufficient to  simply  use  the
       free() call instead.

Name

read_allocate, read_deallocate - Allocate and deallocate the Read structure.

Return Values

       On  successful  completion, the read_allocate() function returns a pointer to a Read structure. Otherwise
       this function returns a null pointer.

       The read_deallocate() function returns no value.

See Also

read_reading(3), fread_reading(3), write_reading(3), fwrite_reading(3)

                                                                                                read_allocate(3)

Synopsis

#include<Read.h>Read*read_allocate(intnum_points,intnum_bases);voidread_deallocate(Read*read);

See Also