ES-2024 reverter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
337B

  1. #ifndef _LINEBUFFER_H_
  2. #define _LINEBUFFER_H_
  3. struct linebuffer {
  4. int size;
  5. int pos;
  6. char data[0];
  7. };
  8. struct linebuffer * create_linebuffer(int size);
  9. int linebuffer_read(struct linebuffer *lbuf, int fd);
  10. char * linebuffer_get(struct linebuffer *lbuf);
  11. int linebuffer_clear(struct linebuffer *lbuf);
  12. #endif /* _LINEBUFFER_H_ */