(C) 1998 AROS - The Amiga Research OS


NAME
#include <string.h>

char * strchr ()

SYNOPSIS
const char * str
int c

FUNCTION
Searches for a character in a string.

INPUTS
str
Search this string
c
Look for this character

RESULT
A pointer to the first occurence of c in str or NULL if c is not found in str.

EXAMPLE
char buffer[64];

strcpy (buffer, "Hello ");

// This returns a pointer to the first l in buffer.
strchr (buffer, 'l');

// This returns NULL
strchr (buffer, 'x');
SEE ALSO
strrchr()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
11.12.1996 aros
New functions