summaryrefslogtreecommitdiffstats
path: root/man3/memccpy.3
blob: 4dd2247c4462896cecebb9eabef473241cfef222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\" May be distributed under the GNU General Public License
.\" References consulted:
.\"     Linux libc source code
.\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\"     386BSD man pages
.\" Modified Sat Jul 24 18:57:24 1993 by Rik Faith (faith@cs.unc.edu)
.TH MEMCCPY 3  "April 10, 1993" "GNU" "Linux Programmer's Manual"
.SH NAME
memccpy \- copy memory area
.SH SYNOPSIS
.nf
.B #include <string.h>
.sp
.BI "void *memccpy(void *" dest ", const void *" src ", int " c ", size_t " n );
.fi
.SH DESCRIPTION
The \fBmemccpy()\fP function copies no more than \fIn\fP bytes from 
memory area \fIsrc\fP to memory area \fIdest\fP, stopping when the
character \fIc\fP is found.
.SH "RETURN VALUE"
The \fBmemccpy()\fP function returns a pointer to the next character
in \fIdest\fP after \fIc\fP, or NULL if \fIc\fP was not found in the 
first \fIn\fP characters of \fIsrc\fP.
.SH "CONFORMING TO"
SVID 3, BSD 4.3
.SH SEE ALSO
.BR bcopy "(3), " memcpy "(3), " memmove "(3), " strcpy "(3), " strncpy (3)