Function memccpy

Top 

Declaration:

int memccpy(void dest[], void src[], int c, int n, int dest_index=0, int src_index=0);

Description

The memccpy function copies the contents of the scr memory block to the dest memory block. Copying stops, when either byte with the value of c is encountered and copied or when c bytes are copied.

Returned value

The memccpy function returns the number of copied bytes.