delorie.com/djgpp/doc/libc/libc_566.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

memcpy

Syntax

 
#include <string.h>

void *memcpy(void *dest, const void *src, int num);

Description

This function copies num bytes from source to dest. It assumes that the source and destination regions don't overlap; if you need to copy overlapping regions, use memmove instead. See section memmove.

Return Value

dest

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001

Example

 
memcpy(buffer, temp_buffer, BUF_MAX);


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004