[BACK]Return to findpw.c CVS log [TXT][DIR] Up to [contributed] / early-roguelike / rogue5

Annotation of early-roguelike/rogue5/findpw.c, Revision 1.1

1.1     ! rubenllo    1: /*
        !             2:  * print out an encrypted password on the standard output
        !             3:  *
        !             4:  * @(#)findpw.c        1.4 (Berkeley) 02/05/99
        !             5:  *
        !             6:  * Rogue: Exploring the Dungeons of Doom
        !             7:  * Copyright (C) 1980-1983, 1985, 1999 Michael Toy, Ken Arnold and Glenn Wichman
        !             8:  * All rights reserved.
        !             9:  *
        !            10:  * See the file LICENSE.TXT for full copyright and licensing information.
        !            11:  */
        !            12: #include <stdio.h>
        !            13:
        !            14: main(int argc, char *argv[])
        !            15: {
        !            16:     char buf[80];
        !            17:
        !            18:     fprintf(stderr, "Password: ");
        !            19:     (void) fgets(buf, 80, stdin);
        !            20:     buf[strlen(buf) - 1] = '\0';
        !            21:     printf("%s\n", xcrypt(buf, "mT"));
        !            22: }

CVSweb