aboutsummaryrefslogtreecommitdiff
path: root/bee.c
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-10-28 00:48:14 +0100
committerubq323 <ubq323@ubq323.website>2022-10-28 00:49:31 +0100
commit7a17c3a4ea869a04041ff2568fd02ec676ab8dff (patch)
treea2ff40bfcae165d294344adcb941d03b535b7f90 /bee.c
parent705db03ebffa24b993f72ca2694ba0982fa80bde (diff)
large refactor continues
Diffstat (limited to 'bee.c')
-rw-r--r--bee.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/bee.c b/bee.c
new file mode 100644
index 0000000..f7d1270
--- /dev/null
+++ b/bee.c
@@ -0,0 +1,19 @@
+#include "irc.h"
+
+#include <stdio.h>
+
+
+int
+main()
+{
+ if (!irc_connect()) { fputs("irc_connect\n",stderr); return 1; }
+ if (!irc_handshake()) { fputs("irc_handshake\n",stderr); return 1; }
+
+ int x;
+ do {
+ x = irc_recv();
+ } while (!x);
+
+ return 0;
+}
+