Metrologic Optimus S Programming Manual page 39

"c" programming guide
Table of Contents

Advertisement

Syntax
int InputPassword (char *psw);
Example
char szPsw [10];
printf ("Input password:");
if (InputPassword (szPsw))
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.
CheckPasswordActive, CheckSysPassword, InputPassword
See Also
Chapter 3 Terminal Specific Function Library
if (!CheckSysPassword (szPsw))
printf ("Illegal password!");
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents