Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / string / bzero.c
blobdc52170c538dd8ce37ab59a4d9fc2e9fb45fe420
1 /*
2 FUNCTION
3 <<bzero>>---initialize memory to zero
5 INDEX
6 bzero
8 SYNOPSIS
9 #include <strings.h>
10 void bzero(void *<[b]>, size_t <[length]>);
12 DESCRIPTION
13 <<bzero>> initializes <[length]> bytes of memory, starting at address
14 <[b]>, to zero.
16 RETURNS
17 <<bzero>> does not return a result.
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>>.
24 <<bzero>> requires no supporting OS subroutines.
27 #include <string.h>
29 void
30 bzero(void *b, size_t length)
33 memset(b, 0, length);