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 FunctionsMEMSETSynopsis#include void * memset (void * s, int c, size_t n)DescriptionThe memset() function fills n bytes of memory starting at the location pointed to by s with the bytec.Example#include #include voidmain (void){char abuf[20];}strcpy(abuf, "This is a string");memset(abuf, ’x’, 5);printf("buf = ’%s’\n", abuf);See Alsostrncpy(), strncmp(), strchr(), memcpy(), memchr()171

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

Saved successfully!

Ooh no, something went wrong!