Debian Codegraph @

upstream/fedora-44/man3/memccpy.3

raw
1 '\" t
2 .\" Copyright 1993 David Metcalfe ([email protected])
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .\" References consulted:
7 .\" Linux libc source code
8 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
9 .\" 386BSD man pages
10 .\" Modified Sat Jul 24 18:57:24 1993 by Rik Faith ([email protected])
11 .TH memccpy 3 2024-07-31 "Linux man-pages 6.13"
12 .SH NAME
13 memccpy \- copy memory area
14 .SH LIBRARY
15 Standard C library
16 .RI ( libc ,\~ \-lc )
17 .SH SYNOPSIS
18 .nf
19 .B #include <string.h>
20 .P
21 .BI "void *memccpy(void " dest "[restrict ." n "], const void " src "[restrict ." n ],
22 .BI " int " c ", size_t " n );
23 .fi
24 .SH DESCRIPTION
25 The
26 .BR memccpy ()
27 function copies no more than
28 .I n
29 bytes from
30 memory area
31 .I src
32 to memory area
33 .IR dest ,
34 stopping when the
35 character
36 .I c
37 is found
38 .RI ( c
39 is copied).
40 .P
41 If the memory areas overlap, the results are undefined.
42 .SH RETURN VALUE
43 The
44 .BR memccpy ()
45 function returns a pointer to the next character
46 in
47 .I dest
48 after
49 .IR c ,
50 or NULL if
51 .I c
52 was not found in the
53 first
54 .I n
55 characters of
56 .IR src .
57 .SH ATTRIBUTES
58 For an explanation of the terms used in this section, see
59 .BR attributes (7).
60 .TS
61 allbox;
62 lbx lb lb
63 l l l.
64 Interface Attribute Value
65 T{
66 .na
67 .nh
68 .BR memccpy ()
69 T} Thread safety MT-Safe
70 .TE
71 .SH STANDARDS
72 POSIX.1-2008.
73 .SH HISTORY
74 POSIX.1-2001, SVr4, 4.3BSD.
75 .SH SEE ALSO
76 .BR bcopy (3),
77 .BR bstring (3),
78 .BR memcpy (3),
79 .BR memmove (3),
80 .BR strcpy (3),
81 .BR strncpy (3)