/* */
/* */
/* */
-/* (C) 2000-2003 Ullrich von Bassewitz */
+/* (C) 2000-2006 Ullrich von Bassewitz */
/* Römerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
#include <stdlib.h>
#include <string.h>
-
+
/* common */
#include "abend.h"
#include "debugflag.h"
+void* xdup (const void* Buf, size_t Size)
+/* Create a copy of Buf on the heap and return a pointer to it. */
+{
+ return memcpy (xmalloc (Size), Buf, Size);
+}
+
+
/* */
/* */
/* */
-/* (C) 2000 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 2000-2006 Ullrich von Bassewitz */
+/* Römerstraße 52 */
+/* D-70794 Filderstadt */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
char* xstrdup (const char* S);
/* Duplicate a string on the heap. The function checks for out of memory */
+void* xdup (const void* Buf, size_t Size);
+/* Create a copy of Buf on the heap and return a pointer to it. */
+
/* End of xmalloc.h */