bmv

Batch file moving utilities
git clone git://jacobedwards.org/bmv
Log | Files | Refs | README

buf.h (267B)


      1 struct buf {
      2 	char *data;
      3 	size_t len;
      4 	size_t size;
      5 };
      6 
      7 struct buf	*bufnew(void);
      8 void	buffree(struct buf *);
      9 int	bufresize(struct buf *, size_t);
     10 int	bufenlarge(struct buf *, size_t);
     11 int	bufappend(struct buf *, void *, size_t);
     12 int	bufshift(struct buf *, size_t);