strbuf.hon commit Use #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) (b4f2a6a)
   1#ifndef STRBUF_H
   2#define STRBUF_H
   3struct strbuf {
   4        int alloc;
   5        int len;
   6        int eof;
   7        char *buf;
   8};
   9
  10extern void strbuf_init(struct strbuf *);
  11extern void read_line(struct strbuf *, FILE *, int);
  12
  13#endif /* STRBUF_H */