Back to index

cell-binutils  2.17cvs20070401
xmemdup.c File Reference
#include "ansidecl.h"
#include "libiberty.h"
#include <sys/types.h>

Go to the source code of this file.


PTR xmemdup (const PTR input, size_t copy_size, size_t alloc_size)

Function Documentation

PTR xmemdup ( const PTR  input,
size_t  copy_size,
size_t  alloc_size 

Definition at line 34 of file xmemdup.c.

  PTR output = xcalloc (1, alloc_size);
  return (PTR) memcpy (output, input, copy_size);

Here is the call graph for this function: