rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | README | LICENSE

strio.h (333B)


      1 /*
      2  * Copy me if you can.
      3  * by 20h
      4  */
      5 
      6 #ifndef __STRIO_H__
      7 #define __STRIO_H__
      8 
      9 typedef struct strio_t strio_t;
     10 struct strio_t {
     11 	char *buf;
     12 	int len;
     13 
     14 	int curpos;
     15 };
     16 
     17 strio_t *strio_new(void *buf, int len);
     18 void strio_free(strio_t *io);
     19 
     20 int strio_read(strio_t *io, char *buf, int len);
     21 #define strio_readall strio_read
     22 
     23 #endif
     24