diff options
author | sin <sin@2f30.org> | 2014-09-15 15:33:48 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-15 15:33:48 +0100 |
commit | 9b5e27e60c0dc7936900bd04caa4317f91412059 (patch) | |
tree | 2ff7e4cc8223136ae7445e6ed25cfc0a983fa0e3 | |
parent | 4b65006881b3ec79ca6ada0f74ca9790ae002961 (diff) |
Print banner
-rw-r--r-- | ratatox.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -68,6 +68,7 @@ static TAILQ_HEAD(reqhead, request) reqhead = TAILQ_HEAD_INITIALIZER(reqhead); static Tox *tox; +static void printbanner(void); static void cb_conn_status(Tox *, int32_t, uint8_t, void *); static void cb_friend_message(Tox *, int32_t, const uint8_t *, uint16_t, void *); static void cb_friend_request(Tox *, const uint8_t *, const uint8_t *, uint16_t, void *); @@ -150,6 +151,18 @@ tokenize(char *s, char **args, int maxargs) } static void +printbanner(void) +{ + printf(" , .\n"); + printf(" (\\,;,/)\n"); + printf(" (o o)\\//,\n"); + printf(" \\ / \\,\n"); + printf(" `+'( ( \\ )\n"); + printf(" // \\ |_./\n"); + printf(" '~' '~----'\tratatox v0.0\n"); +} + +static void cb_conn_status(Tox *tox, int32_t fid, uint8_t status, void *udata) { struct friend *f; @@ -759,6 +772,7 @@ loop(void) int main(void) { + printbanner(); toxinit(); friendload(); loop(); |