strings bytewise unless the stream is buffered. Switch stdout to
line-buffered mode.
(login): Explicitly flush stdout, because Windows doesn't implement
line-buffering faithfully.
}
if (cname == NULL) {
(void)printf("Country name? ");
+ fflush(stdout);
cname = fgets(tmp, sizeof(tmp), stdin);
if (cname == NULL || *cname == 0)
return 0;
#else
printf("Note: This is echoed to the screen\n");
printf("Your name? ");
+ fflush(stdout);
cpass = fgets(tmp, sizeof(tmp), stdin);
if (cpass == NULL || *cpass == 0)
return 0;
printf(" this version: %d, current version: %d\n",
CLIENTPROTO, atoi(ptr));
}
+ fflush(stdout);
return 1;
}
int utf8 = 0;
#ifdef _WIN32
+ setvbuf(stdout, NULL, _IOLBF, 4096);
err = WSAStartup(0x0101, &WsaData);
if (err == SOCKET_ERROR) {
printf("WSAStartup Failed\n");