minix/lib/syslib/sys_memset.c
2005-07-21 18:37:19 +00:00

16 lines
303 B
C

#include "syslib.h"
PUBLIC int sys_memset(char c, phys_bytes base, phys_bytes bytes)
{
/* Zero a block of data. */
message mess;
if (bytes == 0L) return(OK);
mess.MEM_PTR = (char *) base;
mess.MEM_COUNT = bytes;
mess.MEM_PATTERN = c;
return(_taskcall(SYSTASK, SYS_MEMSET, &mess));
}