s_stristr

Top 

If The first occurence of a sign chain looks in another regardless of capital letter and small letter.

Returns the index of the first occurence of a sign chain in another,-1 if it is not included. The first sign of the sign chain has the index 0, the second one the index 1 etc...

Parametre

<Sign chain>

The first parametre is the sign chain to be searched.

<Searching sign chain>

The second parametre is the sign chain to be searched.

Return value

Number of the signs.

Value

Description

-1

The sign chain is not included

but

Position of the sign chain in request

Syntax

s_stristr (<Sign chain> <searching sign chain>)

Example

Command line inputs:

Echo s_stristr ("Otto Graf Lambsdorf" Otto)

0

Echo s_stristr ("Otto Graf Lambsdorf" OTTO)

0

Echo s_stristr ("Otto Graf Lambsdorf" dorf)

15

Echo s_stristr (abc bcd)

-1

Remark

If the sign chain contains blank, it must be enclosed in single quotation marks. But it may be given without single quotation marks.

The function has no short help.

In the examples is to the order s_stristr the order Echo prehired, so that the result is given.

See also

Echo

s_copy

s_concat

s_strchr

s_strlen

s_strrchr

s_strtok