1MEMCCPY(3)                 Linux Programmer's Manual                MEMCCPY(3)
2
3
4

NAME

6       memccpy - copy memory area
7

SYNOPSIS

9       #include <string.h>
10
11       void *memccpy(void *dest, const void *src, int c, size_t n);
12

DESCRIPTION

14       The memccpy() function copies no more than n bytes from memory area src
15       to memory area dest, stopping when the character c is found.
16
17       If the memory areas overlap, the results are undefined.
18

RETURN VALUE

20       The memccpy() function returns a pointer to the next character in  dest
21       after c, or NULL if c was not found in the first n characters of src.
22

ATTRIBUTES

24       For   an   explanation   of   the  terms  used  in  this  section,  see
25       attributes(7).
26
27       ┌──────────┬───────────────┬─────────┐
28Interface Attribute     Value   
29       ├──────────┼───────────────┼─────────┤
30memccpy() │ Thread safety │ MT-Safe │
31       └──────────┴───────────────┴─────────┘

CONFORMING TO

33       POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
34

SEE ALSO

36       bcopy(3), bstring(3), memcpy(3), memmove(3), strcpy(3), strncpy(3)
37

COLOPHON

39       This page is part of release 4.15 of the Linux  man-pages  project.   A
40       description  of  the project, information about reporting bugs, and the
41       latest    version    of    this    page,    can     be     found     at
42       https://www.kernel.org/doc/man-pages/.
43
44
45
46GNU                               2017-09-15                        MEMCCPY(3)
Impressum