blob: 12b61b0308bb80d1e68b2f765c57b6b51e81d1af [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02002 int strstr(string str, string str2)
3 int strstr(string str, string str2, int pos)
4 int strstr(bytes str, bytes str2)
5 int strstr(bytes str, bytes str2, int pos)
MG Mud User88f12472016-06-24 23:31:02 +02006
Zesstra715ec202025-07-09 22:18:31 +02007DESCRIPTION
8 Returns the index of <str2> in <str> searching from position <pos>
9 on forward.
MG Mud User88f12472016-06-24 23:31:02 +020010
Zesstra715ec202025-07-09 22:18:31 +020011 The returned index is relativ to the beginning of the string.
12 If <str2> is not found in <str>, -1 is returned.
MG Mud User88f12472016-06-24 23:31:02 +020013
Zesstra715ec202025-07-09 22:18:31 +020014 If <pos> is negativ, it designates the start position relative
15 to the end of the string (the search will still proceed towards
16 the end of the string).
MG Mud User88f12472016-06-24 23:31:02 +020017
Zesstra715ec202025-07-09 22:18:31 +020018SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020019 strrstr(E), strlen(E), sscanf(E), sprintf(E), explode(E)