contents   index   previous   next



Clib.strpbrk()

syntax:

Clib.strpbrk(str, chrSet)

where:

str - string to be searched.

 

chrSet - set of characters to search for.

 

return:

string - beginning with the character in chrSet that was found, else null.

 

description:

This method searches str for any of the characters in chrSet, and returns the string based at the found character. Returns null if no character from chrSet is found.

 

Clib.strcspn() returns a number and Clib.strpbrk() returns a string.

 

see:

Clib.strcspn()

 

example:

// See Clib.strcspn() for an example

// using this function.

 


Clib.strrchr()