Back to index

tetex-bin  3.0
Functions
memcpy.c File Reference
#include <stddef.h>

Go to the source code of this file.

Functions

voidmemcpy (void *destaddr, void const *srcaddr, size_t len)

Function Documentation

void* memcpy ( void destaddr,
void const srcaddr,
size_t  len 
)

Definition at line 30 of file memcpy.c.

{
  char *dest = destaddr;
  char const *src = srcaddr;

  while (len-- > 0)
    *dest++ = *src++;
  return destaddr;
}