|
Purpose |
Obtains the password from the user |
|
Old name |
#define scrn_password askf_password |
|
Syntax |
int askf_password(mapnr, fieldnr, password) |
|
Parameters |
int mapnr |
Number of map containing the field |
|
|
int fieldnr |
Field from which to get password |
|
|
char* password |
Pointer to an array to hold the entered password |
|
Description |
The askf_password() function is used to obtain a character string from the user which normally represents a password that must not be echoed on the screen. Instead the '#' character is echoed as a guide to the number of characters entered. On first entering the function, a row of dots is displayed, one per character, in the field. If the <Backspace> key is pressed, the display is cleared and the input restarts from the beginning of the field. (In version 4.6xx the display is initially blank and asterisks are used instead) The map must already be on the screen when the function is called. Earlier versions of this function had a restriction on the number of characters that the field could contain. This has now been removed. | |
|
Return values |
Returns the value of the global variable abort_code which is zero or ESCAPE if the user has pressed the <Esc> key | |
|
Example |
|