Back to index

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

Go to the source code of this file.


char * xstrdup (const char *s)

Function Documentation

char* xstrdup ( const char *  s)

Definition at line 31 of file xstrdup.c.

  register size_t len = strlen (s) + 1;
  register char *ret = XNEWVEC (char, len);
  return (char *) memcpy (ret, s, len);

Here is the call graph for this function: