11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Library FunctionsSTRPBRKSynopsisDescription#include char * strpbrk (const char * s1, const char * s2)The strpbrk() function returns a pointer to the first occurrence in string s1 of any character fromstring s2, or a null pointer if no character from s2 exists in s1.Example#include #include voidmain (void){char * str = "This is a string.";}while(str != NULL) {printf( "%s\n", str );str = strpbrk( str+1, "aeiou" );}Return ValuePointer to the first matching character, or NULL if no character found.213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!