1 #ifndef VIENNA_RNA_PACKAGE_CHAR_STREAM_H 2 #define VIENNA_RNA_PACKAGE_CHAR_STREAM_H 20 typedef struct vrna_cstr_s *vrna_cstr_t;
82 vrna_cstr_string(vrna_cstr_t buf);
86 vrna_cstr_vprintf(vrna_cstr_t buf,
92 vrna_cstr_printf(vrna_cstr_t buf,
98 vrna_cstr_message_info(vrna_cstr_t buf,
104 vrna_cstr_message_vinfo(vrna_cstr_t buf,
110 vrna_cstr_message_warning(
struct vrna_cstr_s *buf,
116 vrna_cstr_message_vwarning(
struct vrna_cstr_s *buf,
122 vrna_cstr_print_fasta_header(vrna_cstr_t buf,
127 vrna_cstr_printf_structure(
struct vrna_cstr_s *buf,
128 const char *structure,
134 vrna_cstr_vprintf_structure(
struct vrna_cstr_s *buf,
135 const char *structure,
141 vrna_cstr_printf_comment(
struct vrna_cstr_s *buf,
147 vrna_cstr_vprintf_comment(
struct vrna_cstr_s *buf,
153 vrna_cstr_printf_thead(
struct vrna_cstr_s *buf,
159 vrna_cstr_vprintf_thead(
struct vrna_cstr_s *buf,
165 vrna_cstr_printf_tbody(
struct vrna_cstr_s *buf,
171 vrna_cstr_vprintf_tbody(
struct vrna_cstr_s *buf,
177 vrna_cstr_print_eval_sd_corr(
struct vrna_cstr_s *buf);
181 vrna_cstr_print_eval_ext_loop(
struct vrna_cstr_s *buf,
186 vrna_cstr_print_eval_hp_loop(
struct vrna_cstr_s *buf,
195 vrna_cstr_print_eval_hp_loop_revert(
struct vrna_cstr_s *buf,
204 vrna_cstr_print_eval_int_loop(
struct vrna_cstr_s *buf,
217 vrna_cstr_print_eval_int_loop_revert(
struct vrna_cstr_s *buf,
230 vrna_cstr_print_eval_mb_loop(
struct vrna_cstr_s *buf,
239 vrna_cstr_print_eval_mb_loop_revert(
struct vrna_cstr_s *buf,
248 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.