|
Last change
on this file since 3388 was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
410 bytes
|
| Line | |
|---|
| 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 |
|
|---|
| 16 | void
|
|---|
| 17 | bzero (to, count)
|
|---|
| 18 | char *to;
|
|---|
| 19 | int count;
|
|---|
| 20 | {
|
|---|
| 21 | while (count-- > 0)
|
|---|
| 22 | {
|
|---|
| 23 | *to++ = 0;
|
|---|
| 24 | }
|
|---|
| 25 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.