
Chapter 12 Device Logic (Pawn)
native strrchr(const string[], char);
Searches for a character (last occurrence) in a character string
Parameter
Explanation
string
Character string that should be searched
char
Character that the search is looking for
Explanation
Return value
l
-1, if the character that the search is looking for is not included in the
character string
l
Array index for the character that the search is looking for (last character
occurring in the character string)
native strspn(const string1[], const string2[]);
Searches for the position of the first character in string1 that is
not
included in the character string of
permitted characters (string2)
Parameter
Explanation
string1
Character string that should be searched
string2
Character string of permitted characters
Explanation
Return value
l
Length of string1 if no permitted characters are found
l
Position of the first character in the character string that should be
searched that is not included in the character string of permitted characters
native strcspn(const string1[], const string2[]);
Searches for the position of the first character in string1 that is also included in the character string of
permitted characters (string2)
Parameter
Explanation
string1
Character string that should be searched
string2
Character string of permitted characters
Explanation
Return value
l
Length of string1 if no permitted character has been found
l
Position of the first character in the character string that should be
searched that is also included in the character string of permitted
characters
Rev. 01
133