minix/lib/syslib/sys_physzero.c
Ben Gras b4335679cb Added sys_physzero library call for corresponding system call; modified
system-printf() so it returns number of characters printed (for use in
smart formatting)
2005-06-01 09:36:07 +00:00

16 lines
278 B
C

#include "syslib.h"
PUBLIC int sys_physzero(phys_bytes base, phys_bytes bytes)
{
/* Zero a block of data. */
message mess;
if (bytes == 0L) return(OK);
mess.PZ_MEM_PTR = (char *) base;
mess.PZ_COUNT = bytes;
return(_taskcall(SYSTASK, SYS_PHYSZERO, &mess));
}