man pages section 3: Multimedia Library Functions

Exit Print View

Updated: July 2014
 
 

mlib_memcpy(3MLIB)

Name

mlib_memcpy - copy a block of bytes

Synopsis

cc [ flag... ] file... –lmlib [ library... ]
#include <mlib.h>

void *mlib_memcpy(void *dst, const void *src, size_t n);

Description

The mlib_memcpy() function copies n bytes from memory area src to dst. It returns dst. The memory areas may not overlap. Use mlib_memmove() if the memory areas do overlap.

This function is a wrapper of the standard C function memcpy().

Parameters

The function takes the following arguments:

dst

Pointer to the destination.

src

Pointer to the source.

n

Number of bytes to be copied.

Return Values

The function returns a pointer to the destination.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe

See also

mlib_memmove(3MLIB), mlib_memset(3MLIB), memory(3C), attributes(5)