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 FunctionsSTRCSPNSynopsis#include size_t strcspn (const char * s1, const char * s2)DescriptionThe strcspn() function returns the length of the initial segment of the string pointed to by s1 whichconsists of characters NOT from the string pointed to by s2.Example#include #include voidmain (void){static char set[] = "xyz";}printf("%d\n", strcspn( "abcdevwxyz", set));printf("%d\n", strcspn( "xxxbcadefs", set));printf("%d\n", strcspn( "1234567890", set));See Alsostrspn()Return ValueReturns the length of the segment.204

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

Saved successfully!

Ooh no, something went wrong!