aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index df68eb0..be40d95 100644
--- a/src/main.c
+++ b/src/main.c
@@ -69,6 +69,16 @@ void txbuf_set_str(const char *str) {
txbuf_append_str(str);
}
+void txbuf_set_str2(const char *s1, const char *s2) {
+ txbuf_set_str(s1);
+ txbuf_append_str(s2);
+}
+
+void txbuf_set_str3(const char *s1, const char *s2, const char *s3) {
+ txbuf_set_str2(s1, s2);
+ txbuf_append_str(s3);
+}
+
void txbuf_send(void) {
/* don't sent empty buffer */
if(!txbuflen) return;