From ed95a5621ac9c4f5002e68a981f8b24d5caaedf4 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 28 Mar 2016 14:11:22 -0400 Subject: kludge things to compile on old linux --- src/util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/util.h') 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); -- cgit v1.1