aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-02-21 22:11:10 -0500
committerB. Watson <urchlay@slackware.uk>2026-02-21 22:11:10 -0500
commitd3a19b319e8ecdf111de44ffa9847474301edcbb (patch)
treed9586b54b3940c91debaea418b9711c0e94c7f5c /src/main.c
parent525a545e62c97c1ed5335d6ce5750341c5ba877e (diff)
downloadfujinet-chat-d3a19b319e8ecdf111de44ffa9847474301edcbb.tar.gz
WIP.
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;