version 1.3, 1997/01/15 23:42:24 |
version 1.4, 1997/09/12 04:12:51 |
|
|
} |
} |
} |
} |
if (*p) |
if (*p) |
errx(1, "[-cf] list: illegal list value\n"); |
errx(1, "[-cf] list: illegal list value"); |
if (!stop || !start) |
if (!stop || !start) |
errx(1, "[-cf] list: values may not include zero\n"); |
errx(1, "[-cf] list: values may not include zero"); |
if (stop > _POSIX2_LINE_MAX) |
if (stop > _POSIX2_LINE_MAX) |
errx(1, "[-cf] list: %d too large (max %d)\n", |
errx(1, "[-cf] list: %d too large (max %d)", |
stop, _POSIX2_LINE_MAX); |
stop, _POSIX2_LINE_MAX); |
if (maxval < stop) |
if (maxval < stop) |
maxval = stop; |
maxval = stop; |
|
|
output = 0; |
output = 0; |
for (isdelim = 0, p = lbuf;; ++p) { |
for (isdelim = 0, p = lbuf;; ++p) { |
if (!(ch = *p)) |
if (!(ch = *p)) |
errx(1, "%s: line too long.\n", fname); |
errx(1, "%s: line too long.", fname); |
/* this should work if newline is delimiter */ |
/* this should work if newline is delimiter */ |
if (ch == sep) |
if (ch == sep) |
isdelim = 1; |
isdelim = 1; |