1 #ifndef VIENNA_RNA_PACKAGE_CHAR_STREAM_H 2 #define VIENNA_RNA_PACKAGE_CHAR_STREAM_H 19 typedef struct vrna_cstr_s *vrna_cstr_t;
81 vrna_cstr_string(vrna_cstr_t buf);
85 vrna_cstr_vprintf(vrna_cstr_t buf,
91 vrna_cstr_printf(vrna_cstr_t buf,
97 vrna_cstr_message_info(vrna_cstr_t buf,
103 vrna_cstr_message_vinfo(vrna_cstr_t buf,
109 vrna_cstr_message_warning(
struct vrna_cstr_s *buf,
115 vrna_cstr_message_vwarning(
struct vrna_cstr_s *buf,
121 vrna_cstr_print_fasta_header(vrna_cstr_t buf,
126 vrna_cstr_printf_structure(
struct vrna_cstr_s *buf,
127 const char *structure,
133 vrna_cstr_vprintf_structure(
struct vrna_cstr_s *buf,
134 const char *structure,
140 vrna_cstr_printf_comment(
struct vrna_cstr_s *buf,
146 vrna_cstr_vprintf_comment(
struct vrna_cstr_s *buf,
152 vrna_cstr_printf_thead(
struct vrna_cstr_s *buf,
158 vrna_cstr_vprintf_thead(
struct vrna_cstr_s *buf,
164 vrna_cstr_printf_tbody(
struct vrna_cstr_s *buf,
170 vrna_cstr_vprintf_tbody(
struct vrna_cstr_s *buf,
176 vrna_cstr_print_eval_sd_corr(
struct vrna_cstr_s *buf);
180 vrna_cstr_print_eval_ext_loop(
struct vrna_cstr_s *buf,
185 vrna_cstr_print_eval_hp_loop(
struct vrna_cstr_s *buf,
194 vrna_cstr_print_eval_hp_loop_revert(
struct vrna_cstr_s *buf,
203 vrna_cstr_print_eval_int_loop(
struct vrna_cstr_s *buf,
216 vrna_cstr_print_eval_int_loop_revert(
struct vrna_cstr_s *buf,
229 vrna_cstr_print_eval_mb_loop(
struct vrna_cstr_s *buf,
238 vrna_cstr_print_eval_mb_loop_revert(
struct vrna_cstr_s *buf,
247 vrna_cstr_print_eval_gquad(
struct vrna_cstr_s *buf,
vrna_cstr_t vrna_cstr(size_t size, FILE *output)
Create a dynamic char * stream data structure.
void vrna_cstr_free(vrna_cstr_t buf)
Free the memory occupied by a dynamic char * stream data structure.
void vrna_cstr_fflush(struct vrna_cstr_s *buf)
Flush the dynamic char * output stream.
void vrna_cstr_close(vrna_cstr_t buf)
Free the memory occupied by a dynamic char * stream and close the output stream.