* Copyright (c) 1990 The Regents of the University of California.
* %sccs.include.redist.c%
"@(#) Copyright (c) 1990 The Regents of the University of California.\n\
static char sccsid
[] = "@(#)makekey.c 5.3 (Berkeley) %G%";
static void error(), get();
char *r
, key
[9], salt
[3];
get(key
, sizeof(key
) - 1);
get(salt
, sizeof(salt
) - 1);
len
= strlen(r
= crypt(key
, salt
));
if (write(STDOUT_FILENO
, r
, len
) != len
)
if ((nr
= read(STDIN_FILENO
, bp
, len
)) == len
)
(void)fprintf(stderr
, "makekey: %s\n", strerror(errno
));