[libc] add memccpy and mempcpy

Add an implementation for memccpy and mempcpy. These functions are
posix extensions for the moment.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D111762

GitOrigin-RevId: db8a88fef87e921c331c71503f73a76337c121c9
10 files changed