Lines Matching refs:prefix
25 * a discipline that prepends a prefix string to each output line
36 size_t length; /* prefix length */
37 size_t empty; /* empty line prefix length */
39 char prefix[1]; /* prefix string */
43 * prefix write
80 sfwr(f, pfx->prefix, n > 1 ? pfx->length : pfx->empty, dp);
110 * push the prefix discipline on f
114 int sfdcprefix(Sfio_t* f, const char* prefix)
116 int sfdcprefix(f, prefix)
118 char* prefix;
129 if (!prefix || !(n = strlen(prefix)) || !(sfset(f, 0, 0) & SF_WRITE))
138 memcpy(pfx->prefix, prefix, n);
139 s = (char*)prefix + n;
140 while (--s > (char*)prefix && (*s == ' ' || *s == '\t'));
141 n = s - (char*)prefix;