|
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:
334 bytes
|
| Line | |
|---|
| 1 | /* Wrapper to implement ANSI C's memmove using BSD's bcopy. */
|
|---|
| 2 | /* This function is in the public domain. --Per Bothner. */
|
|---|
| 3 | #include <ansidecl.h>
|
|---|
| 4 | #ifdef __STDC__
|
|---|
| 5 | #include <stddef.h>
|
|---|
| 6 | #else
|
|---|
| 7 | #define size_t unsigned long
|
|---|
| 8 | #endif
|
|---|
| 9 |
|
|---|
| 10 | PTR
|
|---|
| 11 | memmove (s1, s2, n)
|
|---|
| 12 | PTR s1;
|
|---|
| 13 | const PTR s2;
|
|---|
| 14 | size_t n;
|
|---|
| 15 | {
|
|---|
| 16 | bcopy (s2, s1, n);
|
|---|
| 17 | return s1;
|
|---|
| 18 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.