Changeset 19279 for gsdl


Ignore:
Timestamp:
2009-04-28T14:18:19+12:00 (15 years ago)
Author:
ak19
Message:

Changed to using stderr for Windows 'getpass' equivalent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/common-src/src/getpw/getpw.cpp

    r19275 r19279  
    7979  for (i=0; i<3; i++)  {
    8080#if defined(__WIN32__)
    81     cout << "Enter password  (will appear on screen): ";
     81    cerr << "Enter password  (will appear on screen): ";
    8282    char a[129];
    8383    cin.getline(a, 128);
     
    9595
    9696#if defined(__WIN32__)
    97     cout << "Re-enter password: ";
     97    cerr << "Re-enter password: ";
    9898    char b[129];
    9999    cin.getline(b, 128);
     
    116116  }
    117117
     118  char* p = c;
     119  while (*p != 0) {
     120    cerr << "char:" << *p << endl;
     121    p++;
     122  }
     123
    118124  char *salt = "Tp";
    119125  char *pw = crypt (c, salt);
Note: See TracChangeset for help on using the changeset viewer.