s/qmail  3.3.23
Next generation secure email transport
getln.c
Go to the documentation of this file.
1 #include "substdio.h"
2 #include "byte.h"
3 #include "stralloc.h"
4 #include "getln.h"
5 
12 int getln(register substdio *ss,register stralloc *sa,int *match,int sep)
13 {
14  char *cont;
15  unsigned int clen;
16 
17  if (getln2(ss,sa,&cont,&clen,sep) == -1) return -1;
18  if (!clen) { *match = 0; return 0; }
19  if (!stralloc_catb(sa,cont,clen)) return -1;
20  *match = 1;
21  return 0;
22 }
substdio ss
Definition: qmail-pw2u.c:237
int getln(register substdio *ss, register stralloc *sa, int *match, int sep)
Definition: getln.c:12
stralloc sa
Definition: dnscname.c:9
int getln2(substdio *, stralloc *, char **, unsigned int *, int)
int stralloc_catb(stralloc *, char *, unsigned int)
Definition: stralloc_catb.c:4
int match
Definition: matchup.c:181