source:
trunk/minix/lib/syslib/sys_memset.c@
10
Last change on this file since 10 was 9, checked in by , 14 years ago | |
---|---|
File size: 324 bytes |
Line | |
---|---|
1 | #include "syslib.h" |
2 | |
3 | PUBLIC int sys_memset(unsigned long pattern, phys_bytes base, phys_bytes bytes) |
4 | { |
5 | /* Zero a block of data. */ |
6 | message mess; |
7 | |
8 | if (bytes == 0L) return(OK); |
9 | |
10 | mess.MEM_PTR = (char *) base; |
11 | mess.MEM_COUNT = bytes; |
12 | mess.MEM_PATTERN = pattern; |
13 | |
14 | return(_taskcall(SYSTASK, SYS_MEMSET, &mess)); |
15 | } |
16 |
Note:
See TracBrowser
for help on using the repository browser.