minix/lib/syslib/sys_memset.c
Jorrit Herder 654722493b Renamed various system calls.
Cleaned up system call library.
Added new alert() trap to replace notify() --- current notify will be removed
and alert() will be called notify() later.
2005-07-14 15:13:33 +00:00

17 lines
300 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_CHAR = c;
mess.MEM_PTR = (char *) base;
mess.MEM_COUNT = bytes;
return(_taskcall(SYSTASK, SYS_MEMSET, &mess));
}