.\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" %sccs.include.redist.man% .\" .\" @(#)memccpy.3 8.1 (Berkeley) 06/09/93 .\" .Dd .Dt MEMCCPY 3 .Os .Sh NAME .Nm memccpy .Nd copy string until character found .Sh SYNOPSIS .Fd #include .Ft void * .Fn memccpy "void *dst" "const void *src" "int c" "size_t len" .Sh DESCRIPTION The .Fn memccpy function copies bytes from string .Fa src to string .Fa dst . If the character .Fa c (as converted to an unsigned char) occurs in the string .Fa src , the copy stops and a pointer to the byte after the copy of .Fa c in the string .Fa dst is returned. Otherwise, .Fa len bytes are copied, and a NULL pointer is returned. .Sh SEE ALSO .Xr bcopy 3 , .Xr memcpy 3 , .Xr memmove 3 , .Xr strcpy 3 .Sh HISTORY The .Fn memccpy function first appeared in 4.4BSD.