mempcpy.c

00001 /* Copy memory area and return pointer after last written byte.
00002    Copyright (C) 2003 Free Software Foundation, Inc.
00003 
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU Lesser General Public License as published by
00006    the Free Software Foundation; either version 2.1, or (at your option)
00007    any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public License
00015    along with this program; if not, write to the Free Software Foundation,
00016    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
00017 
00018 /* Specification.  */
00019 #include "mempcpy.h"
00020 
00021 #include <string.h>
00022 
00023 /* Copy N bytes of SRC to DEST, return pointer to bytes after the
00024    last written byte.  */
00025 void *
00026 mempcpy (void *dest, const void *src, size_t n)
00027 {
00028   return (char *) memcpy (dest, src, n) + n;
00029 }

Generated on Wed Jul 12 17:53:19 2006 for WvStreams by  doxygen 1.4.7