Documentation Archive Developer
Search
ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



MEMCCPY(3)               BSD Library Functions Manual               MEMCCPY(3)

NAME
     memccpy -- copy string until character found

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <string.h>

     void *
     memccpy(void *restrict s1, const void *restrict s2, int c, size_t n);

DESCRIPTION
     The memccpy() function copies bytes from string s2 to string s1.  If the
     character c (as converted to an unsigned char) occurs in the string s2,
     the copy stops and a pointer to the byte after the copy of c in the
     string s1 is returned.  Otherwise, n bytes are copied, and a NULL pointer
     is returned.

SEE ALSO
     bcopy(3), memcpy(3), memmove(3), strcpy(3)

HISTORY
     The memccpy() function first appeared in 4.4BSD.

BSD                              June 9, 1993                              BSD