MicrOS
strpbrk.c File Reference
#include "../string.h"

Functions

char * strpbrk (char *str1, const char *str2)
 Locate characters in string. More...
 

Function Documentation

◆ strpbrk()

char* strpbrk ( char *  str1,
const char *  str2 
)

Locate characters in string.

Returns a pointer to the first occurrence in str1 of any of the characters that are part of str2, or a null pointer if there are no matches.

Parameters
str1C string to be scanned.
str2C string containing the characters to match.
Returns
A pointer to the first occurrence in str1 of any of the characters that are part of str2, or a null pointer if none of the characters of str2 is found in str1 before the terminating null-character.