11 if (len && (sa->s[len - 1] ==
'\n')) --len;
16 if (sa->s[0] ==
' ')
return 1;
17 if (sa->s[0] ==
'\t')
return 1;
19 colon = byte_chr(sa->s,sa->len,
':');
20 if (colon >= sa->len)
return 0;
22 while (colon && ((sa->s[colon - 1] ==
' ') || (sa->s[colon - 1] ==
'\t')))
27 for (i = 0; i < colon; ++i)
if (sa->s[i] < 33)
return 0;
28 for (i = 0; i < colon; ++i)
if (sa->s[i] > 126)
return 0;
int mess822_ok(stralloc *sa)