]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/memccpy.3
fanotify_init.2, fanotify.7: Document FAN_REPORT_TID
[thirdparty/man-pages.git] / man3 / memccpy.3
CommitLineData
fea681da
MK
1.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2.\"
93015253 3.\" %%%LICENSE_START(VERBATIM)
fea681da
MK
4.\" Permission is granted to make and distribute verbatim copies of this
5.\" manual provided the copyright notice and this permission notice are
6.\" preserved on all copies.
7.\"
8.\" Permission is granted to copy and distribute modified versions of this
9.\" manual under the conditions for verbatim copying, provided that the
10.\" entire resulting derived work is distributed under the terms of a
11.\" permission notice identical to this one.
c13182ef 12.\"
fea681da
MK
13.\" Since the Linux kernel and libraries are constantly changing, this
14.\" manual page may be incorrect or out-of-date. The author(s) assume no
15.\" responsibility for errors or omissions, or for damages resulting from
16.\" the use of the information contained herein. The author(s) may not
17.\" have taken the same level of care in the production of this manual,
18.\" which is licensed free of charge, as they might when working
19.\" professionally.
c13182ef 20.\"
fea681da
MK
21.\" Formatted or processed versions of this manual, if unaccompanied by
22.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 23.\" %%%LICENSE_END
fea681da
MK
24.\"
25.\" References consulted:
26.\" Linux libc source code
27.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28.\" 386BSD man pages
29.\" Modified Sat Jul 24 18:57:24 1993 by Rik Faith (faith@cs.unc.edu)
4b8c67d9 30.TH MEMCCPY 3 2017-09-15 "GNU" "Linux Programmer's Manual"
fea681da
MK
31.SH NAME
32memccpy \- copy memory area
33.SH SYNOPSIS
34.nf
35.B #include <string.h>
68e4db0a 36.PP
fea681da
MK
37.BI "void *memccpy(void *" dest ", const void *" src ", int " c ", size_t " n );
38.fi
39.SH DESCRIPTION
60a90ecd
MK
40The
41.BR memccpy ()
c6fa0841
MK
42function copies no more than
43.I n
44bytes from
45memory area
46.I src
47to memory area
48.IR dest ,
49stopping when the
50character
51.I c
52is found.
847e0d88 53.PP
497be851 54If the memory areas overlap, the results are undefined.
47297adb 55.SH RETURN VALUE
60a90ecd
MK
56The
57.BR memccpy ()
58function returns a pointer to the next character
c6fa0841 59in
51700fd7 60.IR dest
c6fa0841
MK
61after
62.IR c ,
63or NULL if
64.I c
65was not found in the
66first
67.I n
68characters of
69.IR src .
a69b2a64 70.SH ATTRIBUTES
58e63d18
PH
71For an explanation of the terms used in this section, see
72.BR attributes (7).
73.TS
74allbox;
75lb lb lb
76l l l.
77Interface Attribute Value
78T{
a69b2a64 79.BR memccpy ()
58e63d18
PH
80T} Thread safety MT-Safe
81.TE
47297adb 82.SH CONFORMING TO
f338b957 83POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
47297adb 84.SH SEE ALSO
fea681da 85.BR bcopy (3),
879091c9 86.BR bstring (3),
fea681da
MK
87.BR memcpy (3),
88.BR memmove (3),
89.BR strcpy (3),
90.BR strncpy (3)