Commit | Line | Data |
---|---|---|
ed2f64b3 KB |
1 | .\" Copyright (c) 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" %sccs.include.redist.man% | |
5 | .\" | |
b8dfab23 | 6 | .\" @(#)memccpy.3 5.2 (Berkeley) %G% |
ed2f64b3 KB |
7 | .\" |
8 | .TH MEMCCPY 3 "" | |
9 | .UC 7 | |
10 | .SH NAME | |
11 | memccpy | |
12 | .SH SYNOPSIS | |
13 | .nf | |
14 | .ft B | |
15 | #include <string.h> | |
16 | ||
17 | void * | |
18 | memccpy(void *dst, const void *src, int c, size_t len); | |
19 | .ft R | |
20 | .fi | |
21 | .SH DESCRIPTION | |
22 | .I Memccpy | |
23 | copies bytes from string | |
24 | .I src | |
25 | to string | |
26 | .I dst. | |
27 | If the character | |
28 | .I c | |
29 | (as converted to an unsigned char) occurs in the string | |
30 | .IR src , | |
31 | the copy stops and a pointer to the byte after the copy of | |
32 | .I c | |
33 | in the string | |
34 | .I dst | |
35 | is returned. | |
36 | Otherwise, | |
37 | .I len | |
38 | bytes are copied, and a NULL pointer is returned. | |
39 | .SH SEE ALSO | |
b8dfab23 | 40 | bcopy(3), memcpy(3), memmove(3), strcpy(3) |