remove agetline

This commit is contained in:
Evan Gates
2014-11-18 12:49:30 -08:00
committed by sin
parent cca0522872
commit 84b08427a1
14 changed files with 13 additions and 28 deletions

2
cut.c
View File

@@ -121,7 +121,7 @@ cut(FILE *fp)
ssize_t len;
Range *r;
while ((len = agetline(&buf, &size, fp)) != -1) {
while ((len = getline(&buf, &size, fp)) != -1) {
if (len && buf[len - 1] == '\n')
buf[len - 1] = '\0';
if (mode == 'f' && !strchr(buf, delim)) {