XINU
Functions
memcpy.c File Reference

メモリAの領域(source)からメモリBの領域(Destination)にN Byteコピーする。 More...

Go to the source code of this file.

Functions

void * memcpy (void *s, const void *ct, int n)
 メモリAの領域(source)からメモリBの領域(Destination)にN Byteコピーする。 More...
 

Detailed Description

メモリAの領域(source)からメモリBの領域(Destination)にN Byteコピーする。

Definition in file memcpy.c.

Function Documentation

◆ memcpy()

void* memcpy ( void *  s,
const void *  ct,
int  n 
)

メモリAの領域(source)からメモリBの領域(Destination)にN Byteコピーする。

Parameters
[in,out]sコピー先のアドレス(Destination address)
[in]ctコピー元のアドレス(Source address)
[in]nコピーサイズ(Byte)
Returns
コピー完了後のコピー先アドレス

Definition at line 13 of file memcpy.c.

Referenced by addargs(), arp_in(), arp_resolve(), dhcp_bld_bootp_msg(), dhcp_bld_req(), dns_bldq(), dns_geta(), dns_getrname(), ethcontrol(), ethread(), ethwrite(), getlocalip(), icmp_mkpkt(), ip_send(), ipout(), raminit(), ramread(), ramwrite(), rdsread(), rdswrite(), udp_send(), and udp_sendto().

14 {
15  register int i;
16  char *dst = (char *)s;
17  char *src = (char *)ct;
18 
19  for (i = 0; i < n; i++)
20  {
21  *dst++ = *src++;
22  }
23  return s;
24 }
Here is the caller graph for this function: