home *** CD-ROM | disk | FTP | other *** search
- STRRPOS(3) Library Functions STRRPOS(3)
-
-
-
- NAME
- strrpos - give the last position of a character withing a string
-
- SYNOPSIS
- #include <edlib.h>
-
- int strrpos(string,key)
- char *string;
- char key;
-
- DESCRIPTION
- Strpos searches the null terminated string 'string' for the
- last occurance of the character 'key'. The position of this
- character is returned. The terminating null character is
- considered to be part of the string for the purposes of this
- search. Thus, using strrpos to find the null will give the
- same result as a strlen(3).
-
- DIAGNOSTICS
- Strrpos returns a -1 if the character is not found in the
- string.
-
- AUTHOR
- Edwin Hoogerbeets 01/08/88
-
- SEE ALSO
- strpos(3)
-
-
-
-