formatting

This commit is contained in:
Liam Kerr 2026-02-09 18:55:51 +00:00
parent 821716adcc
commit 9e91024f35
9 changed files with 295 additions and 199 deletions

View file

@ -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;