view target-utils/libc/memset.c @ 154:3c446058b5a6

doc/Host-tools-overview: update for fc-memdump replacing fc-olddump
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 06 Mar 2017 01:43:59 +0000 (2017-03-06)
parents 659fa1a26269
children
line wrap: on
line source
#include <sys/types.h>

u_char *
memset(buf, c, n)
	u_char *buf;
	int c;
	unsigned n;
{
	u_char *p = buf;

	for (; n; n--)
		*p++ = c;
	return buf;
}