aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/config.h b/config.h
index 6f8a240..039367d 100644
--- a/config.h
+++ b/config.h
@@ -10,21 +10,7 @@
// current user's name
#define USERNAME "unrtdqttr"
-// wrapper for write
-void writef(char *format, ...)
-{
- va_list args;
- char buf[BUF_MAX +1];
- va_start(args, format);
-
- vsnprintf(buf, sizeof(buf), format, args);
- va_end(args);
-
- int n = 0;
- while (*(buf + n) != 0)
- n++;
- write(0, buf, n);
-}
+void writef(char* format, ...);
struct message {
char buf[MSG_MAX];