Technical Support
On-Line Manuals
CARM User's Guide
Discontinued
#include <string.h> void *memset ( void *buf, /* buffer to initialize */ unsigned char c, /* byte value to set */ unsigned int len); /* buffer length */
The memset function sets the first len bytes in buf to c.
The memset function returns dest.
memccpy, memchr, memcmp, memcpy, memmove
#include <string.h> #include <stdio.h> /* for printf */ void tst_memset (void) { unsigned char buf [10]; memset (buf, '\0', sizeof (buf)); /* fill buffer with null characters */ }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.