TIOCGPGRP copies an int out of the kernel
[unix-history] / usr / src / lib / libc / string / memccpy.3
CommitLineData
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
11memccpy
12.SH SYNOPSIS
13.nf
14.ft B
15#include <string.h>
16
17void *
18memccpy(void *dst, const void *src, int c, size_t len);
19.ft R
20.fi
21.SH DESCRIPTION
22.I Memccpy
23copies bytes from string
24.I src
25to string
26.I dst.
27If the character
28.I c
29(as converted to an unsigned char) occurs in the string
30.IR src ,
31the copy stops and a pointer to the byte after the copy of
32.I c
33in the string
34.I dst
35is returned.
36Otherwise,
37.I len
38bytes are copied, and a NULL pointer is returned.
39.SH SEE ALSO
b8dfab23 40bcopy(3), memcpy(3), memmove(3), strcpy(3)