RNAlib-2.4.7
char_stream.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_CHAR_STREAM_H
2 #define VIENNA_RNA_PACKAGE_CHAR_STREAM_H
3 
16 #include <stdarg.h>
17 
18 /* below is our own implementation of a dynamic char * stream */
19 typedef struct vrna_cstr_s *vrna_cstr_t;
20 
21 vrna_cstr_t
22 vrna_cstr(size_t size,
23  FILE *output);
24 
25 
26 void
27 vrna_cstr_free(vrna_cstr_t buf);
28 
29 
30 void
31 vrna_cstr_close(vrna_cstr_t buf);
32 
33 
34 void
35 vrna_cstr_fflush(struct vrna_cstr_s *buf);
36 
37 
38 const char *
39 vrna_cstr_string(vrna_cstr_t buf);
40 
41 
42 int
43 vrna_cstr_vprintf(vrna_cstr_t buf,
44  const char *format,
45  va_list args);
46 
47 
48 int
49 vrna_cstr_printf(vrna_cstr_t buf,
50  const char *format,
51  ...);
52 
53 
54 void
55 vrna_cstr_message_info(vrna_cstr_t buf,
56  const char *format,
57  ...);
58 
59 
60 void
61 vrna_cstr_message_vinfo(vrna_cstr_t buf,
62  const char *format,
63  va_list args);
64 
65 
66 void
67 vrna_cstr_print_fasta_header(vrna_cstr_t buf,
68  const char *head);
69 
70 
71 void
72 vrna_cstr_printf_structure(struct vrna_cstr_s *buf,
73  const char *structure,
74  const char *format,
75  ...);
76 
77 
78 void
79 vrna_cstr_vprintf_structure(struct vrna_cstr_s *buf,
80  const char *structure,
81  const char *format,
82  va_list args);
83 
84 
85 void
86 vrna_cstr_printf_comment(struct vrna_cstr_s *buf,
87  const char *format,
88  ...);
89 
90 
91 void
92 vrna_cstr_vprintf_comment(struct vrna_cstr_s *buf,
93  const char *format,
94  va_list args);
95 
96 
97 void
98 vrna_cstr_printf_thead(struct vrna_cstr_s *buf,
99  const char *format,
100  ...);
101 
102 
103 void
104 vrna_cstr_vprintf_thead(struct vrna_cstr_s *buf,
105  const char *format,
106  va_list args);
107 
108 
109 void
110 vrna_cstr_printf_tbody(struct vrna_cstr_s *buf,
111  const char *format,
112  ...);
113 
114 
115 void
116 vrna_cstr_vprintf_tbody(struct vrna_cstr_s *buf,
117  const char *format,
118  va_list args);
119 
120 
125 #endif