1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\" References consulted:
6 .\" Linux libc source code
7 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
9 .\" Modified Sat Jul 24 18:57:24 1993 by Rik Faith (faith@cs.unc.edu)
10 .TH MEMCCPY 3 2021-03-22 "GNU" "Linux Programmer's Manual"
12 memccpy \- copy memory area
15 .RI ( libc ", " \-lc )
18 .B #include <string.h>
20 .BI "void *memccpy(void *restrict " dest ", const void *restrict " src ,
21 .BI " int " c ", size_t " n );
26 function copies no more than
38 If the memory areas overlap, the results are undefined.
42 function returns a pointer to the next character
55 For an explanation of the terms used in this section, see
63 Interface Attribute Value
66 T} Thread safety MT-Safe
72 POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.