/[gnats]/gnats/libiberty/xmemdup.c
ViewVC logotype

Diff of /gnats/libiberty/xmemdup.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pdm, Mon Dec 10 23:03:26 2001 UTC revision 1.2 by chewie, Sat Nov 13 05:14:17 2004 UTC
# Line 2  Line 2 
2     This trivial function is in the public domain.     This trivial function is in the public domain.
3     Jeff Garzik, September 1999.  */     Jeff Garzik, September 1999.  */
4    
5    /*
6    
7    @deftypefn Replacement void* xmemdup (void *@var{input}, size_t @var{copy_size}, size_t @var{alloc_size})
8    
9    Duplicates a region of memory without fail.  First, @var{alloc_size} bytes
10    are allocated, then @var{copy_size} bytes from @var{input} are copied into
11    it, and the new memory is returned.  If fewer bytes are copied than were
12    allocated, the remaining memory is zeroed.
13    
14    @end deftypefn
15    
16    */
17    
18  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
19  #include "config.h"  #include "config.h"
20  #endif  #endif

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26