DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

strchr(D3)


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.

Context and synchronization

All contexts.

Hardware applicability

All

Version applicability

ddi: 8, 8mp

References

strchr
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005