1memccpy(3)                 Library Functions Manual                 memccpy(3)
2
3
4

NAME

6       memccpy - copy memory area
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <string.h>
13
14       void *memccpy(void dest[restrict .n], const void src[restrict .n],
15                     int c, size_t n);
16

DESCRIPTION

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

RETURN VALUE

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

ATTRIBUTES

28       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
29       tributes(7).
30
31       ┌────────────────────────────────────────────┬───────────────┬─────────┐
32Interface                                   Attribute     Value   
33       ├────────────────────────────────────────────┼───────────────┼─────────┤
34memccpy()                                   │ Thread safety │ MT-Safe │
35       └────────────────────────────────────────────┴───────────────┴─────────┘
36

STANDARDS

38       POSIX.1-2008.
39

HISTORY

41       POSIX.1-2001, SVr4, 4.3BSD.
42

SEE ALSO

44       bcopy(3), bstring(3), memcpy(3), memmove(3), strcpy(3), strncpy(3)
45
46
47
48Linux man-pages 6.04              2023-03-30                        memccpy(3)
Impressum