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 FunctionsSTRSPNSynopsis#include size_t strspn (const char * s1, const char * s2)DescriptionThe strspn() function returns the length of the initial segment of the string pointed to by s1 whichconsists entirely of characters from the string pointed to by s2.ExampleSee Alsostrcspn()#include #include voidmain (void){printf("%d\n", strspn("This is a string", "This"));printf("%d\n", strspn("This is a string", "this"));}Return ValueThe length of the segment.215

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

Saved successfully!

Ooh no, something went wrong!