diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; |
