#include #include "parselib.h" int __parse_feed(struct state *s, char *buf, unsigned int len) /*EXTRACT_INCL*/{ char *p; unsigned int u; again: p = (char *)(s->buffirst) + s->cur; if (!(u = __parse_getline(s,'\n'))) return 0; if (u >= len) goto again; /* very long line; skip it */ byte_copy(buf,u,p); buf[u++]=0; return u; }