OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [string/] [bzero.c] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
/*
2
FUNCTION
3
<<bzero>>---initialize memory to zero
4
 
5
INDEX
6
        bzero
7
 
8
ANSI_SYNOPSIS
9
        #include <string.h>
10
        void bzero(char *<[b]>, size_t <[length]>);
11
 
12
TRAD_SYNOPSIS
13
        #include <string.h>
14
        void bzero(<[b]>, <[length]>)
15
        char *<[b]>;
16
        size_t <[length]>;
17
 
18
DESCRIPTION
19
<<bzero>> initializes <[length]> bytes of memory, starting at address
20
<[b]>, to zero.
21
 
22
RETURNS
23
<<bzero>> does not return a result.
24
 
25
PORTABILITY
26
<<bzero>> is in the Berkeley Software Distribution.
27
Neither ANSI C nor the System V Interface Definition (Issue 2) require
28
<<bzero>>.
29
 
30
<<bzero>> requires no supporting OS subroutines.
31
*/
32
 
33
#include <string.h>
34
 
35
_VOID
36
_DEFUN (bzero, (b, length),
37
        char *b _AND
38
        size_t length)
39
{
40
  while (length--)
41
    *b++ = 0;
42
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.