GETPASS.3
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. ." @(#)getpass.3 6.1 (Berkeley) 5/15/85
  2. ."
  3. .TH GETPASS 3  "May 15, 1985"
  4. .AT 3
  5. .SH NAME
  6. getpass - read a password
  7. .SH SYNOPSIS
  8. .nf
  9. .ft B
  10. #include <minix/minlib.h>
  11. char *getpass(const char *fIpromptfP)
  12. .fi
  13. .SH DESCRIPTION
  14. .B Getpass
  15. reads a password from the file
  16. .BR /dev/tty ,
  17. or if that cannot be opened, from the standard input,
  18. after prompting with the null-terminated string
  19. .I prompt
  20. and disabling echoing.
  21. A pointer is returned to a null-terminated string
  22. of at most 32 characters, excluding the null.
  23. .SH "SEE ALSO"
  24. .BR crypt (3).
  25. .SH BUGS
  26. The return value points to static data
  27. whose content is overwritten by each call.