Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversstrchr(9F)


NAME

 strchr - find a character in a string

SYNOPSIS

 
#include <sys/ddi.h>
#include <sys/sunddi.h>
char *strchr(const char *str, int chr);

INTERFACE LEVEL

 

Solaris DDI specific (Solaris DDI).

PARAMETERS

 
str
Pointer to a string to be searched.
chr
The character to search for.

DESCRIPTION

 

strchr() returns a pointer to the first occurrence of chr in the string pointed to by str.

RETURN VALUES

 

strchr() returns a pointer to a character, or NULL, if the search fails.

CONTEXT

 

This function can be called from user or interrupt context.

SEE ALSO

 

strcmp(9F)

Writing Device Drivers


SunOS 5.9Go To TopLast Changed 27 Mar 1992

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.