Manpage of MEMCCPY
MEMCCPY
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
5.5 `memccpy'--copy memory regions with end-token check
SYNOPSIS
#include <string.h>
void* memccpy(void *OUT, const void *IN,
int ENDCHAR, size_t N);
DESCRIPTION
This function copies up to N bytes from the memory region pointed to by
IN to the memory region pointed to by OUT. If a byte matching the
ENDCHAR is encountered, the byte is copied and copying stops.
If the regions overlap, the behavior is undefined.
RETURNS
`memccpy' returns a pointer to the first byte following the ENDCHAR in
the OUT region. If no byte matching ENDCHAR was copied, then `NULL' is
returned.
PORTABILITY
`memccpy' is a GNU extension.
`memccpy' requires no supporting OS subroutines.
SEE ALSO
memccpy
is part of the
libc
library.
The full documentation for
libc
is maintained as a Texinfo manual. If
info
and
libc
are properly installed at your site, the command
-
info libc
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:25 GMT, May 16, 2005
www.fiveanddime.net