version 1.14, 1999/12/15 05:34:33 |
version 1.15, 1999/12/30 18:00:42 |
|
|
if (buf==NULL) { length=100; buf=XMALLOC(length); } |
if (buf==NULL) { length=100; buf=XMALLOC(length); } |
while ((ch=getc(stream)) != '\n' && ch != EOF) { |
while ((ch=getc(stream)) != '\n' && ch != EOF) { |
if (ch==' ') ++spaces_pending; |
if (ch==' ') ++spaces_pending; |
else if (isprint(ch)) { |
else if (!iscntrl(ch)) { |
while (len+spaces_pending >= length) { |
while (len+spaces_pending >= length) { |
length*=2; buf=xrealloc(buf, length); |
length*=2; buf=xrealloc(buf, length); |
} |
} |