Mercurial > hg > early-roguelike
comparison rogue5/findpw.c @ 33:f502bf60e6e4
Import Rogue 5.4 from the Roguelike Restoration Project (r1490)
| author | elwin |
|---|---|
| date | Mon, 24 May 2010 20:10:59 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 32:2dcd75e6a736 | 33:f502bf60e6e4 |
|---|---|
| 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 } |
