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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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!