diff options
| author | Franklin Wei <git@fwei.tk> | 2016-03-28 14:11:22 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-03-31 17:09:36 -0400 |
| commit | ed95a5621ac9c4f5002e68a981f8b24d5caaedf4 (patch) | |
| tree | aee87cf74280e8f9dd29aca88d12a638f37b2493 /src/util.h | |
| parent | 13052597a19fd2212efb7f51f19ed73b9f4b6ba4 (diff) | |
| download | netcosm-ed95a5621ac9c4f5002e68a981f8b24d5caaedf4.zip netcosm-ed95a5621ac9c4f5002e68a981f8b24d5caaedf4.tar.gz netcosm-ed95a5621ac9c4f5002e68a981f8b24d5caaedf4.tar.bz2 netcosm-ed95a5621ac9c4f5002e68a981f8b24d5caaedf4.tar.xz | |
kludge things to compile on old linux
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |