Last change
on this file since 577 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
570 bytes
|
Line | |
---|
1 | /* |
---|
2 | FUNCTION |
---|
3 | <<bzero>>---initialize memory to zero |
---|
4 | |
---|
5 | INDEX |
---|
6 | bzero |
---|
7 | |
---|
8 | SYNOPSIS |
---|
9 | #include <strings.h> |
---|
10 | void bzero(void *<[b]>, size_t <[length]>); |
---|
11 | |
---|
12 | DESCRIPTION |
---|
13 | <<bzero>> initializes <[length]> bytes of memory, starting at address |
---|
14 | <[b]>, to zero. |
---|
15 | |
---|
16 | RETURNS |
---|
17 | <<bzero>> does not return a result. |
---|
18 | |
---|
19 | PORTABILITY |
---|
20 | <<bzero>> is in the Berkeley Software Distribution. |
---|
21 | Neither ANSI C nor the System V Interface Definition (Issue 2) require |
---|
22 | <<bzero>>. |
---|
23 | |
---|
24 | <<bzero>> requires no supporting OS subroutines. |
---|
25 | */ |
---|
26 | |
---|
27 | #include <string.h> |
---|
28 | |
---|
29 | void |
---|
30 | bzero(void *b, size_t length) |
---|
31 | { |
---|
32 | |
---|
33 | memset(b, 0, length); |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.