|
Last change
on this file since 108 was 10, 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:
543 bytes
|
| Line | |
|---|
| 1 | /* memcpy (the standard C function)
|
|---|
| 2 | This function is in the public domain. */
|
|---|
| 3 |
|
|---|
| 4 | /*
|
|---|
| 5 | NAME
|
|---|
| 6 | memcpy -- copy memory regions of arbitary length
|
|---|
| 7 |
|
|---|
| 8 | SYNOPSIS
|
|---|
| 9 | void* memcpy (void *out, const void *in, size_t n);
|
|---|
| 10 |
|
|---|
| 11 | DESCRIPTION
|
|---|
| 12 | Copy LENGTH bytes from memory region pointed to by IN to memory
|
|---|
| 13 | region pointed to by OUT.
|
|---|
| 14 | */
|
|---|
| 15 |
|
|---|
| 16 | #include <ansidecl.h>
|
|---|
| 17 | #ifdef __STDC__
|
|---|
| 18 | #include <stddef.h>
|
|---|
| 19 | #else
|
|---|
| 20 | #define size_t unsigned long
|
|---|
| 21 | #endif
|
|---|
| 22 |
|
|---|
| 23 | PTR
|
|---|
| 24 | DEFUN(memcpy, (out, in, length), PTR out AND const PTR in AND size_t length)
|
|---|
| 25 | {
|
|---|
| 26 | bcopy(in, out, length);
|
|---|
| 27 | return out;
|
|---|
| 28 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.