https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: c326bc9a68a6bde8f07621fd89cb1cf9c67080f4 authored by a1ex on 22 October 2013, 21:31:00 UTC
Close branch 60d.
Tip revision: c326bc9
my_memset.c
#include "compiler.h"

// uses less memory than the one in libc.a
void* memset(void* dest, int val, size_t n)
{
	size_t i;
	for(i = 0; i < n; i++)
		*(char*)dest++ = val;
	return dest;
}
back to top