Converse agora com nosso suporte
Chat com o suporte

Privilege Manager for Unix 7.2.3 - Administration Guide

Introducing Privilege Manager for Unix Planning Deployment Installation and Configuration Upgrade Privilege Manager for Unix System Administration Managing Security Policy The Privilege Manager for Unix Security Policy Advanced Privilege Manager for Unix Configuration Administering Log and Keystroke Files InTrust Plug-in for Privilege Manager for Unix Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager for Unix Variables
Variable names Variable scope Global input variables Global output variables Global event log variables PM settings variables
Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures
Environment functions Hash table functions Input and output functions LDAP functions LDAP API example List functions Miscellaneous functions Password functions Remote access functions String functions User information functions Authentication Services functions
Privilege Manager for Unix programs Installation Packages

pad

Syntax
int pad ( string sourcestring, string length, string padchar )
Description

pad returns a new string at the exact length of characters long. The beginning of the string is the sourcestring.

If the length argument is bigger than the size of the sourcestring, then the returned string is padded with the padchar argument. Otherwise, the first length characters of sourcestring are returned.

The padchar argument can also contain multiple characters, in which case the characters return padded repeatedly.

Example
result = pad("123",5," "); {
# returns "123"
}
result = pad("123",6,"<>"); {
# returns "123<><"
}
result = pad("User Name", 3, " "); {
# returns "User"
}

strindex

Syntax
int strindex( string str, string substr )
Description

strindex returns the numerical offset of a given string within another string. If the substr is not found, it returns -1.

Example
printf("%d\n",strindex("xxxfooxxx","foo"));

Returns: "3"

printf("%d\n",strindex("xxxfooxxx","bar"));

Returns: "-1"

Related Topics

strlen

strlen

Syntax
int strlen( string str )
Description

strlen returns the length of the string, str.

Example
printf("%d\n",strlen("foo"));

Returns: 3

Related Topics

strindex

strsub

Syntax
string strsub ( string str, int start, int length )
Description

strsub returns the substring of a given length starting at a given position in the string.

Example
printf("%s\n",strsub("xxxfooxxx",3,3))

Returns "foo".

printf(%s\n",strsub(xxxfooxxx",3,-1))

-1 returns the remainder of the string, "fooxxx".

Documentos relacionados

The document was helpful.

Selecione a classificação

I easily found the information I needed.

Selecione a classificação