Difference between revisions of "Manual:DIL Manual/check password()"
Jump to navigation
Jump to search
(XML import) |
(XML import) |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
<span id="bfcheckpassword"></span> | <span id="bfcheckpassword"></span> | ||
| Line 19: | Line 17: | ||
if (not check_password(pc,arg)) | if (not check_password(pc,arg)) | ||
| − | + | ---~---~---~---~---~---~---~---~--- | |
| − | + | ||
| − | + | </i><!--ENDCODE--> | |
| − | + | ||
| + | |||
| + | ---~---~---~---~---~---~---~---~--- | ||
| + | <span id="bfcheckpassword"></span> | ||
| + | '''Function:''' <i><!--CODE-->integer check_password( u : unitptr, s : string ) ;</i><!--ENDCODE--> | ||
| + | <!--TERM--> '''u''' | ||
| + | <!--DEFINITION--> the unit that you want to check the password of | ||
| + | <!--TERM--> '''s''' | ||
| + | <!--DEFINITION--> the password you are using to check | ||
| + | <!--TERM--> '''Return''' | ||
| + | <!--DEFINITION--> Returns an integer TRUE if pcname is the units password FALSE if not | ||
| + | This function checks the string against the units password and returns TRUE | ||
| + | if they match. | ||
| + | '''Example:''' | ||
| + | <i><!--CODE--> | ||
---~---~---~---~---~---~---~---~--- | ---~---~---~---~---~---~---~---~--- | ||
| + | |||
| + | if (not check_password(pc,arg)) | ||
| + | ---~---~---~---~---~---~---~---~--- | ||
</i><!--ENDCODE--> | </i><!--ENDCODE--> | ||
Latest revision as of 22:31, 4 December 2025
Function: integer check_password( u : unitptr, s : string ) ;
u
the unit that you want to check the password of
s
the password you are using to check
Return
Returns an integer TRUE if pcname is the units password FALSE if not
This function checks the string against the units password and returns TRUE if they match. Example: ---~---~---~---~---~---~---~---~---
if (not check_password(pc,arg))
---~---~---~---~---~---~---~---~---
---~---~---~---~---~---~---~---~---
Function: integer check_password( u : unitptr, s : string ) ;
u
the unit that you want to check the password of
s
the password you are using to check
Return
Returns an integer TRUE if pcname is the units password FALSE if not
This function checks the string against the units password and returns TRUE if they match. Example: ---~---~---~---~---~---~---~---~---
if (not check_password(pc,arg))
---~---~---~---~---~---~---~---~---
---~---~---~---~---~---~---~---~---