protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

io.h (414B)


      1 
      2 #ifndef PROTOVERSE_IO_H
      3 #define PROTOVERSE_IO_H
      4 
      5 #include <stdio.h>
      6 
      7 int read_fd(FILE *fd, unsigned char *buf, int buflen, int *written);
      8 int read_file(const char *filename, unsigned char *buf, int buflen, int *written);
      9 int read_file_or_stdin(const char *filename, unsigned char *buf, int buflen, int *written);
     10 int map_file(const char *filename, unsigned char **p, size_t *flen);
     11 
     12 
     13 #endif /* PROTOVERSE_IO_H */