aboutsummaryrefslogtreecommitdiffstats
path: root/include/dbs/util.h
diff options
context:
space:
mode:
authorturret <turret@duck.com>2024-03-30 16:04:45 -0500
committerturret <turret@duck.com>2024-03-30 16:04:45 -0500
commit80a67b7d20393a29aa5d2cb92197f3381be7fd96 (patch)
treef0c313da5ef509e79e5067972edd91976513ce0e /include/dbs/util.h
parentf01745a2ee84f11b8cc54e37c5f7f596184ab785 (diff)
downloaddiscord-bot-skeleton-80a67b7d20393a29aa5d2cb92197f3381be7fd96.tar.gz
discord-bot-skeleton-80a67b7d20393a29aa5d2cb92197f3381be7fd96.tar.bz2
discord-bot-skeleton-80a67b7d20393a29aa5d2cb92197f3381be7fd96.zip
*: directory changes
since this project is a skeleton and not meant to clutter up the code that will actually consume the bot, i've opted to consolidate the majority of files under a single directory and minimise extra files *: move code to util/ *: move include files to include/dbs/ net: consolidate net functions into single file config: remove config
Diffstat (limited to 'include/dbs/util.h')
-rw-r--r--include/dbs/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dbs/util.h b/include/dbs/util.h
new file mode 100644
index 0000000..bad4a33
--- /dev/null
+++ b/include/dbs/util.h
@@ -0,0 +1,3 @@
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
+#define writeputs(str) write(STDOUT_FILENO, str, strlen(str));