Chapter 3 Terminal Specific Function Library
33
Syntax
int InputPassword (char *psw);
Example
char szPsw [10];
printf ("Input password:");
if (InputPassword (szPsw))
if (!CheckSysPassword (szPsw))
printf ("Illegal password!");
Description
This routine provides simple edit control for the user to input the password.
Yet, instead of showing normal characters, it shows an asterisk (*) on the
display whenever the user inputs a character.
Return
If input is confirmed by hitting [Enter], it returns 1.
If input is cancelled by hitting [ESC], it returns 0.
See Also
CheckPasswordActive, CheckSysPassword, SaveSysPassword
SaveSysPassword
Purpose
To save or change the system password.
Syntax
int SaveSysPassword (const char *psw);
Example
SaveSysPassword ("12345");
Description
This routine allows you to change the system password, but the length of
password is limited to 8 characters maximum. If the input string is a NULL, the
system password will be disabled.
Return
If successful, it returns 1.
Otherwise, it returns 0 to indicate the length of password is over 8 characters.
See Also
CheckPasswordActive, CheckSysPassword, InputPassword
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...