Last change
on this file since 471 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
550 bytes
|
Line | |
---|
1 | /* |
---|
2 | FUNCTION |
---|
3 | <<bcopy>>---copy memory regions |
---|
4 | |
---|
5 | SYNOPSIS |
---|
6 | #include <strings.h> |
---|
7 | void bcopy(const void *<[in]>, void *<[out]>, size_t <[n]>); |
---|
8 | |
---|
9 | DESCRIPTION |
---|
10 | This function copies <[n]> bytes from the memory region |
---|
11 | pointed to by <[in]> to the memory region pointed to by |
---|
12 | <[out]>. |
---|
13 | |
---|
14 | This function is implemented in term of <<memmove>>. |
---|
15 | |
---|
16 | PORTABILITY |
---|
17 | <<bcopy>> requires no supporting OS subroutines. |
---|
18 | |
---|
19 | QUICKREF |
---|
20 | bcopy - pure |
---|
21 | */ |
---|
22 | |
---|
23 | #include <string.h> |
---|
24 | #include <strings.h> |
---|
25 | |
---|
26 | void |
---|
27 | bcopy (const void *b1, |
---|
28 | void *b2, |
---|
29 | size_t length) |
---|
30 | { |
---|
31 | memmove (b2, b1, length); |
---|
32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.