char *
readlin(char *str, size_t n, FILE *infp)
{
- int c;
+ int c = ' '; /* initialize it to something for the caharacter eating step */
char *s;
static char eof_f = 0;
while (--n && (c = getc(infp)) != '\n' && c != EOF)
*s++ = c;
}
- else
- c = ' '; /* initialize it to something for the caharacter eating step */
/* chop CR */
if (s > str && *(s - 1) == '\r')