sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

text.h (299B)


      1 /* See LICENSE file for copyright and license details. */
      2 
      3 struct line {
      4 	char *data;
      5 	size_t len;
      6 };
      7 
      8 struct linebuf {
      9 	struct line *lines;
     10 	size_t nlines;
     11 	size_t capacity;
     12 };
     13 #define EMPTY_LINEBUF {NULL, 0, 0,}
     14 void getlines(FILE *, struct linebuf *);
     15 
     16 int linecmp(struct line *, struct line *);