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

Annotation of early-roguelike/rogue4/findpw.c, Revision 1.1.1.1

1.1       rubenllo    1: /*
                      2:  * print out an encrypted password on the standard output
                      3:  *
                      4:  * @(#)findpw.c        1.1 (Berkeley) 12/20/81
                      5:  *
                      6:  * Rogue: Exploring the Dungeons of Doom
                      7:  * Copyright (C) 1980, 1981, 1982 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:
                     13: #include <stdio.h>
                     14:
                     15: main()
                     16: {
                     17:     char buf[80];
                     18:
                     19:     fprintf(stderr, "Password: ");
                     20:     fgets(buf, 80, stdin);
                     21:     buf[strlen(buf) - 1] = '\0';
                     22:     printf("%s\n", xcrypt(buf, "mT"));
                     23: }

CVSweb