Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ strchr(9F) — SunOS 5.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

strcmp(9F)

strchr(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). 

ARGUMENTS

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.4  —  Last change: 27 Mar 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026