151 if((ch = fgetc(fp))==EOF)
158 if((buffer = (
char *)malloc(bufflen *
sizeof(
char)))==
NULL)
172 buffer[buffpos] = ch;
175 if(++buffpos == bufflen)
180 if((buffer = realloc(buffer, bufflen))==
NULL)
187 }
while((ch != EOF) && (ch !=
'\n'));
190 buffer[buffpos] =
'\0';
193 if(++buffpos < bufflen)
195 if((buffer = realloc(buffer, bufflen))==
NULL)
char * blFgetsany(FILE *fp)