
strsrch(3)            LPC Library Functions            strsrch(3)

NNAAMMEE
       strsrch() - search for substrings in a string

SSYYNNOOPPSSIISS
       int strsrch( string str, string substr | int char,
                    int flag );

DDEESSCCRRIIPPTTIIOONN
       strsrch()  searches  for the first occurance of the string
       `substr' in the string `str'.  The last occurance of `sub       str'  can  be  found  by  passing `-1' as the 3rd argument
       (which is optional).  If the second argument is  an  inte       ger,  that  character  is  found  (a  la C's strchr()/str       rchr().)   The  empty  string  or  null  value  cannot  be
       searched for.

RREETTUURRNN VVAALLUUEE
       The  integer offset of the first (last) match is returned.
       -1 is returned if there was no match, or an error occurred
       (bad args, etc).

SSEEEE AALLSSOO
       explode(3), sscanf(3), replace_string(3), regexp(3)

Majik                      26 Jul 1997                          1

