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 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!