__memmove_chk

Name

__memmove_chk -- copy memory area, with buffer overflow checking

Synopsis

#include <string.h>

void * __memmove_chk(void * dest, const void * src, size_t len, size_t destlen);

Description

The interface __memmove_chk() shall function in the same way as the interface memmove(), except that __memmove_chk() shall check for buffer overflow before computing a result. If an overflow is anticipated, the function shall abort and the program calling it shall exit.

The parameter destlen specifies the size of the object dest. If len exceeds destlen, the function shall abort, and the program calling it shall exit.

The __memmove_chk() function is not in the source standard; it is only in the binary standard.