total = 0;
c = '\0';
b = buf + f->pos;
+ /* TODO: Could optimize here and only blank-out the remaining slots. */
memset(b, ' ', f->width);
while ((current = read(f->fd, &c, 1)) && c != '\n' && c != '\0' && total++ < f->width)
*b++ = c;
int
main(int argc, char *argv[])
{
- int width;
+ int width = 0;
int nfifos = 0;
- int seplen;
+ int seplen = 0;
int prefix = 0;
char *buf;
Config cfg0 = defaults;