Projects : keksum : keksum_genesis

io.h

Dir - Raw

1#include <stddef.h>
2
3void write_all(int fd, char const *buf, size_t len);
4size_t read_all(int fd, unsigned char *buf, size_t len);
5void write_str(int fd, char const *s);
6void newline(int fd);
7void write_line(int fd, char const *s);
8#define assert(expr) ((void) ((expr) || (assert_fail(#expr), 0)))
9void assert_fail(char const *expr);
10void perr(char const *context);
11int chkp(char const *context, int ret);