aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-stream.c')
-rw-r--r--camel/camel-stream.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/camel/camel-stream.c b/camel/camel-stream.c
index c993556fa0..9f9e912bd8 100644
--- a/camel/camel-stream.c
+++ b/camel/camel-stream.c
@@ -192,3 +192,25 @@ camel_stream_close (CamelStream *stream)
{
CS_CLASS (stream)->close (stream);
}
+
+
+
+
+
+/***************** Utility functions ********************/
+
+void
+camel_stream_write_strings (CamelStream *stream, ... )
+{
+ va_list args;
+ char *string;
+
+ va_start(args, stream);
+ string = va_arg (args, char *);
+
+ while (string) {
+ camel_stream_write_string(stream, string);
+ string = va_arg (args, char *);
+ }
+ va_end (args);
+}