diff options
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -19,9 +19,20 @@ /* You should use #pragma once everywhere. */ #pragma once +#include "room.h" + /* 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, ...); void remove_cruft(char*); void all_upper(char*); void all_lower(char*); + +void write_string(int fd, const char *str); +char *read_string(int fd); + +void write_roomid(int fd, room_id *id); +room_id read_roomid(int fd); + +void write_bool(int fd, bool b); +bool read_bool(int fd); |