formatting
This commit is contained in:
parent
821716adcc
commit
9e91024f35
9 changed files with 295 additions and 199 deletions
|
|
@ -1,9 +1,11 @@
|
|||
#include <stddef.h>
|
||||
#include "string.h"
|
||||
|
||||
void *memset(void *s, int c, size_t n) {
|
||||
void *memset(void *s, int c, size_t n)
|
||||
{
|
||||
unsigned char *p = s;
|
||||
while (n--) {
|
||||
while (n--)
|
||||
{
|
||||
*p++ = (unsigned char)c;
|
||||
}
|
||||
return s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue