• Sergei Golubchik's avatar
    fixes for get_password(): · 3c1125d4
    Sergei Golubchik authored
    1. on windows: don't hang when there's no console, that is, _getch() returns -1. 
    2. on windows: _getch() returns an int, not char.
       to distinguish between (char)255 and (int)-1
    3. everywhere. isspace(pos[-1]) == ' ' never worked,
       isspace() returns a boolean, not a char. the never-worked loop was
       removed to preserve the existing behavior.
    3c1125d4
get_password.c 5.18 KB