blob: dc52170c538dd8ce37ab59a4d9fc2e9fb45fe420 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
FUNCTION
<<bzero>>---initialize memory to zero
INDEX
bzero
SYNOPSIS
#include <strings.h>
void bzero(void *<[b]>, size_t <[length]>);
DESCRIPTION
<<bzero>> initializes <[length]> bytes of memory, starting at address
<[b]>, to zero.
RETURNS
<<bzero>> does not return a result.
PORTABILITY
<<bzero>> is in the Berkeley Software Distribution.
Neither ANSI C nor the System V Interface Definition (Issue 2) require
<<bzero>>.
<<bzero>> requires no supporting OS subroutines.
*/
#include <string.h>
void
bzero(void *b, size_t length)
{
memset(b, 0, length);
}
|