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 FunctionsSTRCATSynopsis#include char * strcat (char * s1, const char * s2)DescriptionThis function appends (catenates) string s2 to the end of string s1. The result will be null terminated.The argument s1 must point to a character array big enough to hold the resultant string.Example#include #include voidmain (void){char buffer[256];char * s1, * s2;}strcpy(buffer, "Start of line");s1 = buffer;s2 = " ... end of line";strcat(s1, s2);printf("Length = %d\n", strlen(buffer));printf("string = \"%s\"\n", buffer);See Alsostrcpy(), strcmp(), strncat(), strlen()Return ValueThe value of s1 is returned.198

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

Saved successfully!

Ooh no, something went wrong!