(C) 1998 AROS - The Amiga Research OS


NAME
#include <string.h>

char * strstr ()

SYNOPSIS
const char * str
const char * search

FUNCTION
Searches for a string in a string.

INPUTS
str
Search this string
search
Look for this string

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

EXAMPLE
char buffer[64];

strcpy (buffer, "Hello ");

// This returns a pointer to the first l in buffer.
strstr (buffer, "llo ");

// This returns NULL
strstr (buffer, "llox");
SEE ALSO
strchr(), strrchr(), strpbrk()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
11.12.1996 aros
New functions