1MEMCCPY(3) Linux Programmer's Manual MEMCCPY(3)
2
3
4
6 memccpy - copy memory area
7
9 #include <string.h>
10
11 void *memccpy(void *restrict dest, const void *restrict src,
12 int c, size_t n);
13
15 The memccpy() function copies no more than n bytes from memory area src
16 to memory area dest, stopping when the character c is found.
17
18 If the memory areas overlap, the results are undefined.
19
21 The memccpy() function returns a pointer to the next character in dest
22 after c, or NULL if c was not found in the first n characters of src.
23
25 For an explanation of the terms used in this section, see at‐
26 tributes(7).
27
28 ┌────────────────────────────────────────────┬───────────────┬─────────┐
29 │Interface │ Attribute │ Value │
30 ├────────────────────────────────────────────┼───────────────┼─────────┤
31 │memccpy() │ Thread safety │ MT-Safe │
32 └────────────────────────────────────────────┴───────────────┴─────────┘
33
35 POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
36
38 bcopy(3), bstring(3), memcpy(3), memmove(3), strcpy(3), strncpy(3)
39
41 This page is part of release 5.13 of the Linux man-pages project. A
42 description of the project, information about reporting bugs, and the
43 latest version of this page, can be found at
44 https://www.kernel.org/doc/man-pages/.
45
46
47
48GNU 2021-03-22 MEMCCPY(3)