StrStr

Locates the sub string in argument 2 in the input string. If found the function will return the character offset of the sub string. If not found the function will return -1.

Arguments

Number Type Compulsory Default Description

1

string

Yes

Input string

2

string

Yes

Sub string

3

real

No

0

Offset

Argument 1

String to search

Argument 2

Sub-string

Argument 3

Offset into search string where search should begin.

Returns

Return type: real

Number of characters from start of search string where sub string starts. -1 if substring is not found.