Mercurial > hg > CbC > CbC_gcc
annotate libiberty/bzero.c @ 10:26e357f6275f
add cbc_make_nested_function
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Sep 2009 21:04:27 +0900 |
parents | a06113de4d67 |
children |
rev | line source |
---|---|
0 | 1 /* Portable version of bzero for systems without it. |
2 This function is in the public domain. */ | |
3 | |
4 /* | |
5 | |
6 @deftypefn Supplemental void bzero (char *@var{mem}, int @var{count}) | |
7 | |
8 Zeros @var{count} bytes starting at @var{mem}. Use of this function | |
9 is deprecated in favor of @code{memset}. | |
10 | |
11 @end deftypefn | |
12 | |
13 */ | |
14 | |
15 #include <stddef.h> | |
16 | |
17 extern void *memset(void *, int, size_t); | |
18 | |
19 void | |
20 bzero (void *to, size_t count) | |
21 { | |
22 memset (to, 0, count); | |
23 } |