focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / strpos
1 NAME
2     strpos - print the first occurrence of a string in another string
3
4 SYNOPSIS
5     strpos(s, t)
6
7 TYPES
8     s           str
9     t           str
10
11     return      int
12
13 DESCRIPTION
14     This function returns the location of the first occurance of the string t
15     in the string s.  If t is not found within s, 0 is returned.  If t is
16     found at the beginning of s, 1 is returned.
17
18 EXAMPLE
19     > strpos("abcdefg", "c")
20             3
21     > strpos("abcdefg", "def")
22             4
23     > strpos("abcdefg", "defg")
24             4
25     > strpos("abcdefg", "defgh")
26             0
27     > strpos("abcdefg", "abc")
28             1
29     > strpos("abcdefg", "xyz")
30             0
31
32
33 LIMITS
34     none
35
36 LINK LIBRARY
37     none
38
39 SEE ALSO
40     XXX - fill in
41