strchr --
find first or last occurence of a character in a string
Synopsis
#include <sys/types.h>
#include <sys/ddi.h>
char *strchr(const char *s, int c)
Description
strchr( )
finds the first or last occurence
of a specified character in a string.
Arguments
s
Pointer to a string,
defined as an array of characters,
terminated by a null character.
The null character terminating a string is considered to
be part of the string.
c
Character to be located.
Return values
strchr( )
returns a pointer to first (last) occurrence of c
(converted to a char) in string s,
or a NULL pointer
if c does not occur in the string.
Usage
strchr( )
returns a pointer to the first (last)
occurrence of c.