OSDN Git Service

271afcfcf463645cd13a7d10d742a53ad3820fad
[linuxjm/LDP_man-pages.git] / original / man3 / memccpy.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
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.
12 .\"
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.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
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)
30 .TH MEMCCPY 3  2014-03-10 "GNU" "Linux Programmer's Manual"
31 .SH NAME
32 memccpy \- copy memory area
33 .SH SYNOPSIS
34 .nf
35 .B #include <string.h>
36 .sp
37 .BI "void *memccpy(void *" dest ", const void *" src ", int " c ", size_t " n );
38 .fi
39 .SH DESCRIPTION
40 The
41 .BR memccpy ()
42 function copies no more than
43 .I n
44 bytes from
45 memory area
46 .I src
47 to memory area
48 .IR dest ,
49 stopping when the
50 character
51 .I c
52 is found.
53
54 If the memory areas overlap, the results are undefined.
55 .SH RETURN VALUE
56 The
57 .BR memccpy ()
58 function returns a pointer to the next character
59 in
60 .IR dest
61 after
62 .IR c ,
63 or NULL if
64 .I c
65 was not found in the
66 first
67 .I n
68 characters of
69 .IR src .
70 .SH ATTRIBUTES
71 .SS Multithreading (see pthreads(7))
72 The
73 .BR memccpy ()
74 function is thread-safe.
75 .SH CONFORMING TO
76 SVr4, 4.3BSD, POSIX.1-2001.
77 .SH SEE ALSO
78 .BR bcopy (3),
79 .BR memcpy (3),
80 .BR memmove (3),
81 .BR strcpy (3),
82 .BR strncpy (3)
83 .SH COLOPHON
84 This page is part of release 3.67 of the Linux
85 .I man-pages
86 project.
87 A description of the project,
88 information about reporting bugs,
89 and the latest version of this page,
90 can be found at
91 \%http://www.kernel.org/doc/man\-pages/.