Go to the first, previous, next, last section, table of contents.


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, POSIX

Example

memcpy(buffer, temp_buffer, BUF_MAX);


Go to the first, previous, next, last section, table of contents.