source: trunk/libs/newlib/src/newlib/libc/string/bzero.c @ 577

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/*
2FUNCTION
3<<bzero>>---initialize memory to zero
4
5INDEX
6        bzero
7
8SYNOPSIS
9        #include <strings.h>
10        void bzero(void *<[b]>, size_t <[length]>);
11
12DESCRIPTION
13<<bzero>> initializes <[length]> bytes of memory, starting at address
14<[b]>, to zero.
15
16RETURNS
17<<bzero>> does not return a result.
18
19PORTABILITY
20<<bzero>> is in the Berkeley Software Distribution.
21Neither 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
29void
30bzero(void *b, size_t length)
31{
32
33        memset(b, 0, length);
34}
Note: See TracBrowser for help on using the repository browser.