Lines Matching defs:term
2021 /* int bsreadlnsa (bstring r, struct bStream * s, bstring term)
2023 * Read a bstring terminated by any character in the term string or the end
2028 int bsreadlnsa (bstring r, struct bStream * s, const_bstring term) {
2034 if (s == NULL || s->buff == NULL || r == NULL || term == NULL ||
2035 term->data == NULL || r->mlen <= 0 || r->slen < 0 ||
2037 if (term->slen == 1) return bsreadlna (r, s, term->data[0]);
2038 if (term->slen < 1 || buildCharField (&cf, term)) return BSTR_ERR;
2046 b[l] = term->data[0]; /* Set sentinel */
2076 b[l] = term->data[0]; /* Set sentinel */
2171 /* int bsreadlns (bstring r, struct bStream * s, bstring term)
2173 * Read a bstring terminated by any character in the term string or the end
2178 int bsreadlns (bstring r, struct bStream * s, const_bstring term) {
2179 if (s == NULL || s->buff == NULL || r == NULL || term == NULL
2180 || term->data == NULL || r->mlen <= 0) return BSTR_ERR;
2181 if (term->slen == 1) return bsreadln (r, s, term->data[0]);
2182 if (term->slen < 1) return BSTR_ERR;
2185 return bsreadlnsa (r, s, term);