16 if (
getln2(b,sa,&cont,&clen,sep) == -1)
return -1;
17 if (!clen) { *match = 0;
return 0; }
35 if (n == 0) { *clen = 0;
return 0; }
38 if (i < n) {
buffer_SEEK(b,*clen = i + 1); *cont = x;
return 0; }
int getln2(buffer *b, stralloc *sa, char **cont, unsigned int *clen, int sep)
int getln(buffer *b, stralloc *sa, int *match, int sep)
int buffer_get(buffer *, char *, size_t)
int buffer_feed(buffer *)
#define buffer_SEEK(s, len)
unsigned int byte_chr(char *, unsigned int, int)
int stralloc_catb(stralloc *, const char *, unsigned int)
int stralloc_ready(stralloc *sa, size_t len)
int stralloc_readyplus(stralloc *sa, size_t len)