Mercurial > hg > CbC > CbC_gcc
comparison libiberty/xmemdup.c @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | a06113de4d67 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
2 This trivial function is in the public domain. | 2 This trivial function is in the public domain. |
3 Jeff Garzik, September 1999. */ | 3 Jeff Garzik, September 1999. */ |
4 | 4 |
5 /* | 5 /* |
6 | 6 |
7 @deftypefn Replacement void* xmemdup (void *@var{input}, size_t @var{copy_size}, size_t @var{alloc_size}) | 7 @deftypefn Replacement void* xmemdup (void *@var{input}, @ |
8 size_t @var{copy_size}, size_t @var{alloc_size}) | |
8 | 9 |
9 Duplicates a region of memory without fail. First, @var{alloc_size} bytes | 10 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 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 it, and the new memory is returned. If fewer bytes are copied than were |
12 allocated, the remaining memory is zeroed. | 13 allocated, the remaining memory is zeroed. |