fixed dfrotz on windows
This commit is contained in:
parent
25642926dd
commit
c176163b66
1 changed files with 3 additions and 2 deletions
|
@ -81,9 +81,10 @@ static int xgetchar(void)
|
|||
* other places where I'm not so careful). */
|
||||
static void getline_(char *s)
|
||||
{
|
||||
fflush(stdout);
|
||||
int c;
|
||||
char *p = s;
|
||||
char *p;
|
||||
fflush(stdout);
|
||||
p = s;
|
||||
while (p < s + INPUT_BUFFER_SIZE - 1)
|
||||
if ((*p++ = xgetchar()) == '\n') {
|
||||
*p = '\0';
|
||||
|
|
Loading…
Add table
Reference in a new issue