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 FunctionsSTRSTR, STRISTRSynopsis#include char * strstr (const char * s1, const char * s2)char * stristr (const char * s1, const char * s2)DescriptionThe strstr() function locates the first occurrence of the sequence of characters in the string pointedto by s2 in the string pointed to by s1.The stristr() routine is the case-insensitive version of this function.Example#include #include voidmain (void){printf("%d\n", strstr("This is a string", "str"));}Return ValuePointer to the located string or a null pointer if the string was not found.216

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

Saved successfully!

Ooh no, something went wrong!