aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 6de6945..8007ec8 100644
--- a/src/util.h
+++ b/src/util.h
@@ -21,6 +21,8 @@
#include "room.h"
+#define WSPACE " \t\r\n"
+
/* utility functions */
void __attribute__((noreturn,format(printf,1,2))) error(const char *fmt, ...);
void __attribute__((format(printf,4,5))) debugf_real(const char*, int, const char*, const char *fmt, ...);
@@ -47,3 +49,8 @@ void write_size(int fd, size_t);
size_t read_size(int fd);
bool is_vowel(char c);
+
+size_t strlcat(char *dst, const char *src, size_t siz);
+
+/* formats a noun's name */
+char *format_noun(char *buf, size_t len, const char *name, size_t count, bool default_article, bool capitalize);